getAffineTransform
computes the matrix of an affine
transform from 4 pairs of corresponding points in a source and destination
image.
Arguments
- from
A 4x2 matrix indicating the location (x, y) of 4 points in the source image.
- to
A 4x2 matrix indicating the location (x, y) of 4 points in the destination image. The order of the points must correspond to the order in
from
.- from_dim
A vector which first two elements indicate the number of rows and columns of the source image.
- to_dim
A vector which first two elements indicate the number of rows and columns of the destination image. If not specified,
from_dim
will be used as a default.
Author
Simon Garnier, garnier@njit.edu