powered by
By default images are stored in xyzc order. Use permute_axes to change that order.
permute_axes(im, perm)
an image
a character string, e.g., "zxyc" to have the z-axis come first
# NOT RUN { im <- array(0,c(10,30,40,3)) %>% as.cimg permute_axes(im,"zxyc") # }
Run the code above in your browser using DataLab