cropImg | R Documentation |
Crop images of class *Image
in this package with a bounding box.
## S4 method for signature 'SpatRasterImage'
cropImg(x, bbox, filename = "")
## S4 method for signature 'BioFormatsImage'
cropImg(x, bbox)
## S4 method for signature 'ExtImage'
cropImg(x, bbox)
x |
An object of class |
bbox |
Numeric vector with names "xmin", "xmax", "ymin", "ymax", in any order, to specify the bounding box. |
filename |
Output file name for transformed SpatRaster. |
Image of the same class as input but cropped. For
BioFormatsImage
, the image is not loaded into memory; only the
extent is changed.
Other image methods:
SFE-image
,
affineImg()
,
dim,BioFormatsImage-method
,
ext()
,
imgRaster()
,
imgSource()
,
mirrorImg()
,
rotateImg()
,
scaleImg()
,
translateImg()
,
transposeImg()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.