Find Center of Gravity of Image from FSL
fslcog(img, mm = TRUE, verbose = TRUE, ts = FALSE)
img | Object of class nifti, or path of file |
---|---|
mm | Logical if the center of gravity (COG) would be in mm (default |
verbose | (logical) print out command before running |
ts | (logical) is the series a timeseries (4D), invoking |
Vector of length 3 unless ts option invoked
FSL uses a 0-based indexing system, which will give you a different
answer compared to cog
, but fslcog(img, mm = FALSE) +1
should be relatively close to cog(img)