powered by
Get the values in a local neighborhood of an antsImage.
antsImage
getNeighborhoodAtVoxel(image, center, radius, physical.coordinates = FALSE)
Image object of S4 class antsImage to get values from.
array of indices for neighborhood center
array of values for neighborhood radius (in voxels)
a logical indicating if voxel indices and offsets should be in voxel or physical coordinates
a list
valuesnumeric vector of values
indicesmatrix providing the coordinates for each value
# NOT RUN { img<-makeImage(c(10,10),rnorm(100)) center <- dim(img)/2 radius <- rep(3,2) nhlist<-getNeighborhoodAtVoxel(img,center,radius) # }
Run the code above in your browser using DataLab