Find Center of Gravity of Image, after thresholding
cog(img, thresh = 0, ceil = FALSE, warn = TRUE)Object of class nifti
threshold for image, will find img > 0
Run ceiling to force integers (usu for plotting)
Produce a warning if the image is empty after thresholding
Vector of length 3