| cog | R Documentation | 
Find Center of Gravity of Image, after thresholding
cog(img, thresh = 0, ceil = FALSE, warn = TRUE)
| img | Object of class nifti | 
| thresh | threshold for image, will find  | 
| ceil | Run  | 
| warn | Produce a warning if the image is empty after thresholding | 
Vector of length 3
dims = rep(20, 3)
x = array(rnorm(prod(dims)), dim = dims)
img = nifti(x, dim= dims, 
datatype = convert.datatype()$FLOAT32, cal.min = min(x), 
cal.max = max(x), pixdim = rep(1, 4))
cog(img)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.