imgTranslate {biOps} | R Documentation |
This function translates an image block and returns a new image.
imgTranslate(imgdata, x_start, y_start, x_end, y_end, t_width, t_height)
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 |
return an imagedata object
## Not run: x <- readJpeg(system.file("samples", "violet.jpg", package="biOps")) y <- imgTranslate(x, 100, 100, 200, 200, 50, 50) ## End(Not run)