Herror ::vector_to_hom_mat2d (
const HTuple &Rows1,
const HTuple &Columns1,
const HTuple &Rows2,
const HTuple &Columns2,
HTuple *HomMat2D
)
Approximate an affine transformation from point correspondences.
::vector_to_hom_mat2d approximates an affine transformation
from at least three point correspondences. The point
correspondences are passed in the tuples
(Rows1,Columns1) and
(Rows2,Columns2), where corresponding points must
be at the same index positions in the tuples. If more than three
point correspondences are passed the transformation is
overdetermined. In this case, the returned transformation is the
transformation that minimizes the distances between the input points
(Rows1,Columns1) and the transformed points
(Rows2,Columns2). The calculated transformation
is returned in HomMat2D and can be used directly with
operators that transform data using affine transformations, e.g.,
::affine_trans_image.
Parameters
Rows1 (input_control)
|
line.begin.y-array -> HTuple.double
|
|
Row coordinates of the starting points. |
Columns1 (input_control)
|
line.begin.x-array -> HTuple.double
|
|
Column coordinates of the starting points. |
Rows2 (input_control)
|
line.end.y-array -> HTuple.double
|
|
Row coordinates of the end points. |
Columns2 (input_control)
|
line.end.x-array -> HTuple.double
|
|
Column coordinates of the end points. |
HomMat2D (output_control)
|
affine2d-array -> HTuple.double *
|
|
Output transformation matrix. |
|
Number of elements: 6 |
Possible Successors
::affine_trans_image
Alternatives
::dvf_to_hom_mat2d
See also
::affine_trans_image,
::optical_flow_match
Module
Basic operators
Copyright © 1996-2002 MVTec Software GmbH