getCenterOfMass: center of mass

Description Usage Arguments Value Author(s) Examples

View source: R/reorientImage.R

Description

compute an image center of mass in physical space which is defined as the mean of the intensity weighted voxel coordinate system.

Usage

1

Arguments

img

antsImage

Value

vector center of mass

Author(s)

Brian B. Avants

Examples

1
2
3
4
fi<-antsImageRead( getANTsRData("r16"))
com1<-getCenterOfMass( fi )
fi<-antsImageRead( getANTsRData("r64"))
com2<-getCenterOfMass( fi )

neuroconductor/ANTsR documentation built on Oct. 11, 2020, 8:14 a.m.