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-devel/ANTsR documentation built on April 1, 2021, 1:02 p.m.