imgCrop {biOps}R Documentation

Crops an image

Description

This function crops image.

Usage

imgCrop(imgdata, x_start, y_start, c_width, c_height)

Arguments

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

Value

return an imagedata object

Examples

        ## Not run: 
                x <- readJpeg(system.file("samples", "violet.jpg", package="biOps"))
                y <- imgCrop(x, 100, 50, 100, 50)
        
## End(Not run)

[Package biOps version 0.2.1 Index]