Public Member Functions | Private Attributes | List of all members
PerspectiveWrapper Class Reference

A class to do a perspective transformation. More...

#include <image_manipulation.h>

Public Member Functions

 PerspectiveWrapper ()
 Constructor. More...
 
void init (const vector< Point > &rect)
 Initialization. More...
 
void wrap (const Mat &src, Mat &dst)
 Wrap the perspective. More...
 
vector< Point > get_rect ()
 Returns the unwrapped rect. More...
 

Private Attributes

int width
 Width and height of the rect. More...
 
int height
 
Point2f objPts [4]
 Object and image points. More...
 
Point2f imgPts [4]
 
Mat H
 THE HOMOGRAPHY. More...
 
bool ready
 Was the init() function already called? More...
 

Detailed Description

A class to do a perspective transformation.

Definition at line 146 of file image_manipulation.h.

Constructor & Destructor Documentation

PerspectiveWrapper::PerspectiveWrapper ( )

Constructor.

Member Function Documentation

vector<Point> PerspectiveWrapper::get_rect ( )

Returns the unwrapped rect.

Returns
The unwrapped rect
void PerspectiveWrapper::init ( const vector< Point > &  rect)

Initialization.

Parameters
rectA wrapped rect that should be unwrapped
void PerspectiveWrapper::wrap ( const Mat &  src,
Mat &  dst 
)

Wrap the perspective.

Parameters
srcThe original image
dstThe destination image

Member Data Documentation

Mat PerspectiveWrapper::H
private

THE HOMOGRAPHY.

Definition at line 154 of file image_manipulation.h.

Point2f PerspectiveWrapper::objPts[4]
private

Object and image points.

Definition at line 152 of file image_manipulation.h.

bool PerspectiveWrapper::ready
private

Was the init() function already called?

Definition at line 156 of file image_manipulation.h.

int PerspectiveWrapper::width
private

Width and height of the rect.

Definition at line 150 of file image_manipulation.h.


The documentation for this class was generated from the following file: