imgCrop {biOps} | R Documentation |
This function crops image.
imgCrop(imgdata, x_start, y_start, c_width, c_height)
imgdata |
The image |
x_start |
Upper left x coordinate of source block |
y_start |
Upper left y coordinate of source block |
c_width |
Width of the block to crop |
c_height |
Height of the block to crop |
return an imagedata object
## Not run: x <- readJpeg(system.file("samples", "violet.jpg", package="biOps")) y <- imgCrop(x, 100, 50, 100, 50) ## End(Not run)