imgTranslate: Translate an image block

Description Usage Arguments Value Examples

Description

This function translates an image block and returns a new image.

Usage

1
imgTranslate(imgdata, x_start, y_start, x_end, y_end, t_width, t_height)

Arguments

imgdata

The image

x_start

Upper left x coordinate of source block

y_start

Upper left y coordinate of source block

x_end

Upper left x coordinate of destination block

y_end

Upper left y coordinate of destination block

t_width

Width of the block to move

t_height

Height of the block to move

Value

return an imagedata object

Examples

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

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