imgTranslate {biOps}R Documentation

Translate an image block

Description

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

Usage

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

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

[Package biOps version 0.2.1 Index]