powered by
compute an image center of mass in physical space which is defined as the mean of the intensity weighted voxel coordinate system.
getCenterOfMass(img)
antsImage
vector center of mass
# NOT RUN { fi<-antsImageRead( getANTsRData("r16")) com1<-getCenterOfMass( fi ) fi<-antsImageRead( getANTsRData("r64")) com2<-getCenterOfMass( fi ) # }
Run the code above in your browser using DataLab