Description Usage Arguments Value Examples
View source: R/replace_dropped_dimensions.R
This function is the reverse of dropEmptyImageDimensions
.
If dropEmptyImageDimensions
was run, and the output is a list,
usually if keep_ind = TRUE
, this function reverses that.
1 | replace_dropped_dimensions(img, inds, orig.dim)
|
img |
Object of class |
inds |
List of length 3 of indices from
|
orig.dim |
Original dimension of pre-dropped image. Output image will have dimensions same as this value |
Object of class nifti
1 2 3 4 5 6 7 8 9 | ## Not run:
# nim is an object of class nifti
dd = dropEmptyImageDimensions(nim, keep_ind = TRUE)
remake = replace_dropped_dimensions(img = dd$outimg,
inds = dd$inds,
orig.dim = dd$orig.dim)
all.equal(nim, remake)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.