imgCrop: Crops an image

Description Usage Arguments Value Examples

Description

This function crops image.

Usage

1
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

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

matiasb/biOps documentation built on May 21, 2019, 12:55 p.m.