Flip images along the middle horizontal or vertical axis.
Arguments
- x
SpatRaster or SpatVector
- direction
character. Should (partially) match "vertical" to flip by rows, or "horizontal" to flip by columns
- filename
character. Output filename
- 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.- ...
additional arguments for writing files as in
writeRaster
See also
Other image methods:
SFE-image
,
affineImg()
,
cropImg()
,
dim,BioFormatsImage-method
,
ext()
,
imgRaster()
,
imgSource()
,
rotateImg()
,
scaleImg()
,
translateImg()
,
transposeImg()