Herror ::hom_mat2d_translate (
    const HTuple &HomMat2D,
    const HTuple &Tx,
    const HTuple &Ty,
    HTuple *HomMat2DTranslate
)

Add a translation to a homogeneous 2D transformation matrix.

::hom_mat2d_translate adds a translation by the vector (Tx,Ty) to a homogeneous 2D transformation matrix HomMat2D. The resulting matrix is returned in HomMat2DTranslate.


Parameters

HomMat2D (input_control)
affine2d-array -> HTuple.double
Input transformation matrix.
Number of elements: 6

Tx (input_control)
point.x -> HTuple.double / long
Translation along the x-axis.
Default value: 64
Suggested values: 0, 16, 32, 64, 128, 256, 512, 1024
Typical range of values: 0 <= Tx <= 1024
Minimum increment: 1
Recommended increment: 10

Ty (input_control)
point.y -> HTuple.double / long
Translation along the y-axis.
Default value: 64
Suggested values: 0, 16, 32, 64, 128, 256, 512, 1024
Typical range of values: 0 <= Ty <= 1024
Minimum increment: 1
Recommended increment: 10

HomMat2DTranslate (output_control)
affine2d-array -> HTuple.double *
Output transformation matrix.
Number of elements: 6


Result

::hom_mat2d_identity always returns H_MSG_TRUE.


Possible Predecessors

::hom_mat2d_identity, ::hom_mat2d_translate, ::hom_mat2d_scale, ::hom_mat2d_rotate


Possible Successors

::hom_mat2d_translate, ::hom_mat2d_scale, ::hom_mat2d_rotate


Module

Basic operators



Copyright © 1996-2002 MVTec Software GmbH