Herror ::hom_mat2d_compose (
    const HTuple &HomMat2DSecond,
    const HTuple &HomMat2DFirst,
    HTuple *HomMat2DCompose
)

Compose two homogeneous 2D transformation matrices.

::hom_mat2d_compose composes a new 2D transformation matrix from the two input matrices. The transformation given by HomMat2DFirst is applied first, followed by the transformation given by HomMat2DSecond, i.e., with HomMat2DFirst = H_1, HomMat2DSecond = H_2, and HomMat2DCompose = H_c is:

H_c = H_2 H_1


Parameters

HomMat2DSecond (input_control)
affine2d-array -> HTuple.double
Second input transformation matrix.
Number of elements: 6

HomMat2DFirst (input_control)
affine2d-array -> HTuple.double
First input transformation matrix.
Number of elements: 6

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


Result

::hom_mat2d_compose 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