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

getCenterOfMass(img)

Arguments

img

antsImage

Value

vector center of mass

Examples

fi<-antsImageRead( getANTsRData("r16")) com1<-getCenterOfMass( fi ) fi<-antsImageRead( getANTsRData("r64")) com2<-getCenterOfMass( fi )