Creates spherical points in the coordinate space of the target image based on the n-dimensional matrix of points that the user supplies. The image defines the dimensionality of the data so if the input image is 3D then the input points should be 2D or 3D.

makePointsImage(pts, mask, radius = 5)

Arguments

pts

input powers points

mask

antsImage mask defining target space

radius

for the points

Value

antsImage is output

Author

Avants BB, Duda JT

Examples

if (FALSE) { # \dontrun{
mni <- antsImageRead(getANTsRData("mni")) %>% getMask()
data("powers_areal_mni_itk", package = "ANTsR", envir = environment())
powersLabels <- makePointsImage(powers_areal_mni_itk[, 1:3], mni, radius = 3)
} # }