Calculate the centre of gravity for an image containing 0 and 1's.

get_voi_cog(voi)

Arguments

voi

nifti object.

Value

triplet of x,y,z coordinates.