The ProjectiveMapping class converts the coordinate system from a quadrangle to a rectangle with origen at (0,0)
More...
#include <projectivemapping.h>
The ProjectiveMapping class converts the coordinate system from a quadrangle to a rectangle with origen at (0,0)
ProjectiveMapping::ProjectiveMapping |
( |
| ) |
|
ProjectiveMapping::ProjectiveMapping |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
ProjectiveMapping constructor that sets the rectangle dimensions.
- Parameters
-
width | of the rectangle |
height | of the rectangle |
void ProjectiveMapping::calculateMapping |
( |
const vector< Point2f > & |
quadrangle_corners | ) |
|
|
virtual |
calculateMapping computes the transformation matrix from the space given to the rectangle
- Parameters
-
quadrangle_corners | contains the quadrangle corners |
void ProjectiveMapping::mapPoints |
( |
vector< Point2f > & |
points, |
|
|
vector< Point2f > & |
mappedPoints |
|
) |
| |
|
virtual |
mapPoints converts form quadrangle to rectangle
- Parameters
-
points | input points in the quadrangle space |
mappedPoints | output points in rectangle space |
void ProjectiveMapping::mapPoints |
( |
Point2i & |
point, |
|
|
Point2i & |
mappedPoint |
|
) |
| |
|
virtual |
mapPoints converts form quadrangle to rectangle
- Parameters
-
points | input point in the quadrangle space |
mappedPoints | output point in rectangle space |
void ProjectiveMapping::warpMatrix |
( |
Mat & |
matrix, |
|
|
Mat & |
warpedMatrix, |
|
|
Size & |
warpedSize |
|
) |
| |
|
virtual |
warpMatrix transforms a Mat from quadrangle space to a rectangle sapce
- Parameters
-
matrix | input Mat with the data to be warped |
warpedMatrix | output Mat with the warped data |
warpedSize | size of the warpedMatrix is going to have |
Mat ProjectiveMapping::transformationMatrix |
|
protected |
The documentation for this class was generated from the following files: