Data structures and functions to work with areas of interest and their transformations.
More...
|
double | Argument (double X, double Y) |
| Calculates the argument (direction) of the vector X, Y. More...
|
|
cvbbool_t | CreateAffineTransformedImage (IMG ImageIn, const TCoordinateMap &CS, IMG &ImageOut) |
| Creates an affine transformed image from the given ImageIn. More...
|
|
cvbbool_t | CreateAreaAffineTransformedImage (IMG ImageIn, const TCoordinateMap &CS, const TArea &Area, IMG &ImageOut) |
| Creates an affine transformed, linear interpolated image of the given Area from the given ImageIn. More...
|
|
cvbbool_t | CreateMatrixTransformedImage (IMG ImageIn, TMatrix Matrix, IMG &ImageOut) |
| Creates a matrix transformed image. More...
|
|
cvbbool_t | CreateMatrixTransformedImageEx (IMG ImageIn, TMatrix Matrix, IMG &ImageOut) |
| Creates a matrix transformed image. More...
|
|
bool | InverseMatrix (TMatrix A, TMatrix &AInv) |
| Computes the inverse of matrix A, if possible. More...
|
|
double | MatrixDeterminant (TMatrix A) |
| Calculates the determinant of the given matrix A. More...
|
|
void | MatrixITransform (cvbval_t Xin, cvbval_t Yin, TMatrix A, cvbval_t &Xout, cvbval_t &Yout) |
| Calculates the transformation for the input vector (Xin, Yin) based on the matrix A. More...
|
|
void | MatrixRTransform (double Xin, double Yin, TMatrix A, double &Xout, double &Yout) |
| Calculates the transformation for the input vector (Xin, Yin) based on the matrix A. More...
|
|
void | MatrixTransformArea (TArea AreaIn, TMatrix A, TArea &AreaOut) |
| Performs a matrix transformation on a given area. More...
|
|
void | MultiplyMatrices (TMatrix A, TMatrix B, TMatrix &R) |
| Multiplies two matrices A and B. More...
|
|
void | RotationMatrix (double Angle, TMatrix &R) |
| Calculates the rotation matrix coefficients for a given Angle. More...
|
|
void | SetArea (double X0, double Y0, double X1, double Y1, double X2, double Y2, TArea &Area) |
| Sets the coordinates to the given Area. More...
|
|
void | SetMatrix (double A11, double A12, double A21, double A22, TMatrix &A) |
| Sets the components to a 2x2 matrix A. More...
|
|
void | SetRectArea (double Left, double Top, double Right, double Bottom, TArea &Area) |
| Sets the Area points P0, P1, and P2 based on the given rectangle borders. More...
|
|
Data structures and functions to work with areas of interest and their transformations.
Creates an affine transformed image from the given ImageIn.
The coordinate system is also transformed via ComposeCoordinateMaps to reflect the translatory changes. The resulting ImageOut width and height are as with CreateMatrixTransformedImage, but the image coordinates are also transformed regarding the origin of the given CS. This is where this function differs from CreateMatrixTransformedImage.
This is effectively a shorthand for
return false;
cvbbool_t CreateAreaAffineTransformedImage(IMG ImageIn, const TCoordinateMap &CS, const TArea &Area, IMG &ImageOut)
Creates an affine transformed, linear interpolated image of the given Area from the given ImageIn.
Definition: TransformationExports.cpp:1413
cvbbool_t MaxImageArea(IMG Image, TArea &Area)
Sets the Area to the full extent of the Image.
Definition: PseudoCOMExports.cpp:249
Describes an area of interest that is using three points (P0, P1 and P2).
Definition: CVTypes.h:170
The following BytesPerPixel for signed and unsigned integer cvbdatatype_t values are supported: 1, 2, 4, and 8. For floating point cvbdatatype_t values only 4 and 8 BytesPerPixel are supported.
- Note
- Call ReleaseObject on ImageOut, when it is no longer needed.
- Parameters
-
[in] | ImageIn | Image object handle of the source image to be transformed. |
[in] | CS | Affine matrix with which the image is transformed. |
[out] | ImageOut | Variable to receive the handle of the output image. |
- Returns
- true if successful; false otherwise.
- See also
- CreateMatrixTransformedImage, CreateAreaAffineTransformedImage
Creates an affine transformed, linear interpolated image of the given Area from the given ImageIn.
The coordinate system is also transformed via ComposeCoordinateMaps to reflect the translatory changes. The resulting ImageOut has the dimensions of the smallest possible rectangle which encloses the given Area which has been transformed with TCoordinateMap::Matrix. The image coordinates are also transformed of ImageOut the given CS.
The following BytesPerPixel for signed and unsigned integer cvbdatatype_t values are supported: 1, 2, 4, and 8. For floating point cvbdatatype_t values only 4 and 8 BytesPerPixel are supported.
- Note
- Call ReleaseObject on ImageOut, when it is no longer needed.
- Parameters
-
[in] | ImageIn | Image object handle of the source image to be transformed. |
[in] | Area | Area of interest in image coordinates to be transformed. |
[in] | CS | Affine matrix with which the image is transformed. |
[out] | ImageOut | Variable to receive the handle of the output image. |
- Returns
- true if successful; false otherwise.
- See also
- CreateMatrixTransformedImage, CreateAffineTransformedImage
cvbbool_t CreateMatrixTransformedImage |
( |
IMG |
ImageIn, |
|
|
TMatrix |
Matrix, |
|
|
IMG & |
ImageOut |
|
) |
| |
Creates a matrix transformed image.
The possible geometric transformations with the specified 2x2 Matrix include
- rotation
- scaling
- stretching.
The resulting ImageOut, which is created via CreateCompatibleImage, has the coordinate system being transformed regarding its origin. The resulting width and height is defined by the bounding box of the matrix transformed image area.
The following BytesPerPixel for signed and unsigned integer cvbdatatype_t values are supported: 1, 2, 4, and 8. For floating point cvbdatatype_t values only 4 and 8 BytesPerPixel are supported.
- Note
- Call ReleaseObject on ImageOut, when it is no longer needed.
- Parameters
-
[in] | ImageIn | Image object handle of the source image to be transformed. |
[in] | Matrix | Matrix with which the image is transformed. |
[out] | ImageOut | Variable to receive the handle of the output image. |
- Returns
- true if successful; false otherwise.
- See also
- CreateMatrixTransformedImageEx
cvbbool_t CreateMatrixTransformedImageEx |
( |
IMG |
ImageIn, |
|
|
TMatrix |
Matrix, |
|
|
IMG & |
ImageOut |
|
) |
| |
Creates a matrix transformed image.
The possible geometric transformations with the specified 2x2 Matrix include
- rotation
- scaling
- stretching.
The resulting ImageOut, which is created via CreateCompatibleImage, has the default coordinate system. The resulting width and height is defined by the bounding box of the matrix transformed image area.
The following BytesPerPixel for signed and unsigned integer cvbdatatype_t values are supported: 1, 2, 4, and 8. For floating point cvbdatatype_t values only 4 and 8 BytesPerPixel are supported.
- Note
- Call ReleaseObject on ImageOut, when it is no longer needed.
- Parameters
-
[in] | ImageIn | Image object handle of the source image to be transformed. |
[in] | Matrix | Matrix with which the image is transformed. |
[out] | ImageOut | Variable to receive the handle of the output image. |
- Returns
- true if successful; false otherwise.
- See also
- CreateMatrixTransformedImage