<< Click to Display Table of Contents >> Navigation: Image Manager > CVB Technology > Density and transformation matrix |
This section outlines some additional information for using Common Vision Blox according to
Density specifies the sample rate of the image.
A density of 1000 means that all pixels in the specified area are used in the algorithm.
Where as a density of 500 means that only every second pixel is used.
Note that the used pixel is NOT interpolated.
This is used by some Image Manager functions (like ImageHistogram), methods as well as by some Common Vision Blox Tools.
Transformation matrices are used by some Image Manager functions (like CreateMatrixTransformedImage) as well as by some Common Vision Blox Tools, e.g. Minos.
See also the type definition of TMatrix and the chapter Areas and Matrices.
The Image-dll provides an affine transformation from xy to x‘y‘ coordinate system :
where is the affine transformation matrix (e.g. TMatrix).
The following equations show all affine transformation:
where are the scaling factors in x and y.
where α is the rotation angle about the origin.
If no shear is present, and the image is not reflected, the transformation matrix is:
then the scaling and the rotation angle are given by:
To transform from x‘y‘ to xy, the matrix has to be inverted with (e.g.) the CVB function InverseMatrix(TMatrix A, TMatrix &AInv):
To the affine transformation a translation can be added (as for TCoordinateMap).
This can be described by the 2D homogeneous coordinate matrix
where is the translation in x and y.