makePointsImage: Create label image from physical space points

View source: R/makePowersPointsImage.R

makePointsImageR Documentation

Create label image from physical space points

Description

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.

Usage

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(s)

Avants BB, Duda JT

Examples

## Not run: 
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)

## End(Not run)


stnava/ANTsR documentation built on April 16, 2024, 12:17 a.m.