Back to Aurora Vision Studio website
You are here: Start » Filter Reference » OpenCV » Geometric Image Transformations » cvGetPerspectiveTransform
Module: | OpenCV |
---|
Calculates the perspective transform from four pairs of corresponding points.
Applications
Prepares matrix to be used with cvWarpPerspective.
Name | Type | Description | |
---|---|---|---|
inSrc | Point2DArray | Coordinates of quadrangle vertices in the source image. | |
inDst | Point2DArray | Coordinates of the corresponding quadrangle vertices in the destination image. | |
outM | Matrix | Calculated transformation matrix. |
Description
The function calculates the 3x3 matrix of perspective transform, that can be applied to an image using cvWarpPerspective filter.
Examples
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Each of input array must contain four points in cvGetPerspectiveTransform. |
Complexity Level
This filter is available on Basic Complexity Level.
See Also
- cvWarpAffine – Applies an affine transformation to an image.
- cvGetAffineTransform – Calculates the affine transform from 3 corresponding points.
- cvWarpPerspective – Applies a perspective transformation to an image.