translate {EBImage} | R Documentation |
Translates an image.
translate(x, v)
x |
An |
v |
The translation vector or a matrix of translation vectors
if |
Borders are repeated during translation.
An Image
object or an array, containing the translated version
of x
.
Gregoire Pau, gpau@ebi.ac.uk, 2008
resize
, rotate
x = readImage(system.file("images", "lena-color.png", package="EBImage")) y = translate(x, c(20,20)) if (interactive()) { display(x, title='Lena') display(y, title='Translated lena') } ## gradient y = translate(x, c(1,1)) if (interactive()) display(0.5+4*(y-x), title='NE gradient')