Crop images of class *Image in this package with a bounding box.
Usage
# S4 method for class 'SpatRasterImage'
cropImg(x, bbox, filename = "")
# S4 method for class 'BioFormatsImage'
cropImg(x, bbox)
# S4 method for class 'ExtImage'
cropImg(x, bbox)Value
Image of the same class as input but cropped. For
BioFormatsImage, the image is not loaded into memory; only the
extent is changed.
See also
Other image methods:
SFE-image,
affineImg(),
dim,BioFormatsImage-method,
ext(),
imgRaster(),
imgSource(),
mirrorImg(),
rotateImg(),
scaleImg(),
translateImg(),
transposeImg()