The axis (PxPxPxPxpxpx,PyPyPyPypypy)-(QxQxQxQxqxqx,QyQyQyQyqyqy) is fixed in
the transformation, i.e., the points on the axis remain unchanged when
transformed using HomMat2DReflectHomMat2DReflectHomMat2DReflectHomMat2DReflecthomMat2DReflecthom_mat_2dreflect. To obtain this behavior, first
a translation is added to the input transformation matrix that moves the
axis onto the origin of the global coordinate system. Then, the reflection
is added, and finally a translation that moves the axis back to its original
position. This corresponds to the following chain of transformations:
It should be noted that homogeneous transformation matrices refer to
a general right-handed mathematical coordinate system. If a
homogeneous transformation matrix is used to transform images,
regions, XLD contours, or any other data that has been extracted
from images, the row coordinates of the transformation must be
passed in the x coordinates, while the column coordinates must be
passed in the y coordinates. Consequently, the order of passing row
and column coordinates follows the usual order
(RowRowRowRowrowrow,ColumnColumnColumnColumncolumncolumn). This convention is essential to
obtain a right-handed coordinate system for the transformation of
iconic data, and consequently to ensure in particular that rotations
are performed in the correct mathematical direction.
Note that homogeneous matrices are stored row-by-row as a tuple;
the last row is usually not stored because it is identical for all
homogeneous matrices that describe an affine transformation. For example,
the homogeneous matrix
is stored as the tuple [ra, rb, tc, rd, re, tf]. However, it is also
possible to process full 3×3 matrices, which represent
a projective 2D transformation.
Execution Information
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
Multithreading scope: global (may be called from any thread).
hom_mat2d_reflecthom_mat2d_reflectHomMat2dReflectHomMat2dReflectHomMat2dReflecthom_mat2d_reflect returns TRUE if both points on the axis are not
identical. If necessary, an exception is raised.