You are here: Start » Filter Reference » Geometric Image Transformations » cvGetPerspectiveTransform

Calculates the perspective transform from four pairs of corresponding points.

Name | Type | Range | 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

Each of input array must contain four points in cvGetAffineTransform

### User Proficiency Level

**Basic**