Learn R Programming

ANTsR (version 0.7.2.0)

makePowersPointsImage: Label image from Powers points

Description

Creates spherical points in the coordinate space of the target image.

Usage

makePowersPointsImage(pts, mask, radius = 5)

Arguments

pts

input powers points

mask

antsImage mask defining target space

radius

for the points

Value

antsImage is output

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
mni <- antsImageRead( getANTsRData( "mni" ) ) %>% getMask()
data( "powers_areal_mni_itk", package = "ANTsR", envir = environment() )
powersLabels = makePowersPointsImage( powers_areal_mni_itk, mni )
# if you have a different target space
# pts = antsApplyTransformsToPoints( 3, powers_areal_mni_itk,
#          transformlist = concatenatedMaps$toTemplate,
#          whichtoinvert = concatenatedMaps$toTemplateInversion )
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab