getCenterOfMass.Rd
compute an image center of mass in physical space which is defined as the mean of the intensity weighted voxel coordinate system.
getCenterOfMass(img)
img | antsImage |
---|
vector center of mass
Brian B. Avants
fi<-antsImageRead( getANTsRData("r16")) com1<-getCenterOfMass( fi ) fi<-antsImageRead( getANTsRData("r64")) com2<-getCenterOfMass( fi )