OpenCV  3.0.0
Open Source Computer Vision
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
cv::reg::MapProjec Class Reference

#include "mapprojec.hpp"

Inheritance diagram for cv::reg::MapProjec:
cv::reg::Map

Public Member Functions

 MapProjec (void)
 
 MapProjec (const cv::Matx< double, 3, 3 > &projTr)
 
 ~MapProjec (void)
 
void compose (const Map &map)
 
const cv::Matx< double, 3, 3 > & getProjTr () const
 
cv::Ptr< MapinverseMap (void) const
 
void inverseWarp (const cv::Mat &img1, cv::Mat &img2) const
 
void normalize (void)
 
void scale (double factor)
 
- Public Member Functions inherited from cv::reg::Map
virtual ~Map (void)
 
virtual void warp (const cv::Mat &img1, cv::Mat &img2) const
 

Detailed Description

Defines an transformation that consists on a projective transformation

Constructor & Destructor Documentation

cv::reg::MapProjec::MapProjec ( void  )

Default constructor builds an identity map

cv::reg::MapProjec::MapProjec ( const cv::Matx< double, 3, 3 > &  projTr)

Constructor providing explicit values

Parameters
[in]projTrProjective transformation
cv::reg::MapProjec::~MapProjec ( void  )

Destructor

Member Function Documentation

void cv::reg::MapProjec::compose ( const Map map)
virtual

Changes the map composing the current transformation with the one provided in the call. The order is first the current transformation, then the input argument.

Parameters
[in]mapTransformation to compose with.

Implements cv::reg::Map.

const cv::Matx<double, 3, 3>& cv::reg::MapProjec::getProjTr ( ) const
inline

Returns projection matrix

Returns
Projection matrix
cv::Ptr<Map> cv::reg::MapProjec::inverseMap ( void  ) const
virtual

Calculates the inverse map

Returns
Inverse map

Implements cv::reg::Map.

void cv::reg::MapProjec::inverseWarp ( const cv::Mat img1,
cv::Mat img2 
) const
virtual

Warps image to a new coordinate frame. The calculation is img2(x)=img1(T(x)), so in fact this is the inverse warping as we are taking the value of img1 with the forward transformation of the points.

Parameters
[in]img1Original image
[out]img2Warped image

Implements cv::reg::Map.

void cv::reg::MapProjec::normalize ( void  )
inline

Normalizes object's homography

void cv::reg::MapProjec::scale ( double  factor)
virtual

Scales the map by a given factor as if the coordinates system is expanded/compressed by that factor.

Parameters
[in]factorExpansion if bigger than one, compression if smaller than one

Implements cv::reg::Map.


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