View source: R/getEmptyImageDimensions.R
getEmptyImageDimensions | R Documentation |
Creates a list of indices of an image that has all irrelevant values
getEmptyImageDimensions(img, value = 0, threshold = 0, reorient = FALSE, ...)
get_empty_dim(img, value = 0, threshold = 0, reorient = FALSE, ...)
img |
nifti object or array |
value |
Value to check against. If zero, then
|
threshold |
Include dimension if fewer than |
reorient |
Should image be reoriented if a filename? |
... |
additional arguments to pass to
|
List of length 3 of indices.
get_empty_dim
is a shorthand for getEmptyImageDimensions
with all the same arguments. Also, NA
are set to zero.
arr = array(rbinom(1000, size = 1, prob = 0.2), dim = c(10,10,10))
arr[,,1] = 0
arr[2:3,,] = 0
getEmptyImageDimensions(arr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.