Swap rows and columns of images. In effect, this will flip the image around the diagonal running from top left to bottom right.
Usage
# S4 method for SpatRasterImage
transposeImg(x, filename = "", maxcell = NULL, ...)
# S4 method for BioFormatsImage
transposeImg(x, ...)
# S4 method for ExtImage
transposeImg(x, ...)
Arguments
- x
An object of class
*Image
as implemented in this package.- filename
Output file name for transformed SpatRaster.
- maxcell
Max number of pixels to load
SpatRasterImage
into memory. The default 1e7 is chosen because this is the approximate number of pixels in the medium resolution image atresolution = 4L
in Xenium OME-TIFF to make different methods of this function consistent.- ...
Ignored. It's there so different methods can all be passed to the same
lapply
in the method for SFE objects. Some methods have extra arguments.