img_length | R Documentation |
Multiplies the number of slices by the voxel resolution for each direction.
img_length(img, units = c("mm", "cm"))
img |
Image object, any method with |
units |
output unit, either cubic mm or cubic cm. |
Scalar numeric, one number, in mm or cm.
nim <- nifti(array(rnorm(10^3), dim = c(5, 2, 100)), pixdim = c(1, 0.5, 0.2, 1)) img_length(nim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.