Learn R Programming

redR (version 1.0.1)

register: Registration parameter estimation

Description

Registration parameter estimation

Usage

register(src, tar, method = "taylor", par0 = c(0, 0, 0), verbosity = 2,
  ...)

Arguments

src, tar

cimg objects

method

character indicating the method to be used

par0

numeric vector for the initial guess for the registration parameters

verbosity

Numeric indicating the level of verbosity is displayed

...

parameters to be passed to the optimization algorithm

Value

the registration parameters, usually a 2d vector.

Examples

Run this code
# NOT RUN {
src <- cameraman

tar <- shift(cameraman, c(5,-15))
round(s <- register(src, tar, method = 'coarse', steps = 4), 4)

tar <- shift(cameraman, c(-1.155, 3.231))
round(s <- register(src, tar, method = 'taylor', tol = 1e-4), 4)

tar <- transform(cameraman, c(c(-1.155, 1.231, 0.121)))
round(s <- register(src, tar, method = 'taylor3', tol = 1e-4, maxiter = 100), 4)
# }

Run the code above in your browser using DataLab