powered by
Set a pixel value at an index in an 'antsImage'.
antsSetPixels(x, i = NA, j = NA, k = NA, l = NA, value)
Image object of S4 class 'antsImage'.
the slowest moving index to the image
the next slowest moving index to the image, similar for k ( 2d )
the next slowest moving index to the image ( 3d )
the next slowest moving index to the image ( 4d )
the value to place at this location
array of pixel values
# NOT RUN { img<-makeImage(c(10,10),rnorm(100)) antsSetPixels(img,2,3,value=Inf) # }
Run the code above in your browser using DataLab