Learn R Programming

redR (version 1.0.1)

transform: Transform an image

Description

Transform an image

Usage

transform(im, s)

Arguments

im

cimg object

s

numeric 1 by 3 vector containing the registration parameters

Value

shifted cimg object

Examples

Run this code
# NOT RUN {
shift(cameraman, c(1,1))
shift(cameraman, cbind(c(1,1),c(-0.5,0.5)))
# }

Run the code above in your browser using DataLab