OpenCV
3.3.0
Open Source Computer Vision
|
#include "mapprojec.hpp"
Public Member Functions | |
MapProjec () | |
MapProjec (InputArray projTr) | |
~MapProjec () | |
void | compose (cv::Ptr< Map > map) |
const cv::Matx< double, 3, 3 > & | getProjTr () const |
void | getProjTr (OutputArray projTr) const |
cv::Ptr< Map > | inverseMap () const |
void | inverseWarp (InputArray img1, OutputArray img2) const |
void | normalize () |
void | scale (double factor) |
Public Member Functions inherited from cv::reg::Map | |
virtual | ~Map () |
virtual void | warp (InputArray img1, OutputArray img2) const |
Defines an transformation that consists on a projective transformation
cv::reg::MapProjec::MapProjec | ( | ) |
Default constructor builds an identity map
cv::reg::MapProjec::MapProjec | ( | InputArray | projTr | ) |
Constructor providing explicit values
[in] | projTr | Projective transformation |
cv::reg::MapProjec::~MapProjec | ( | ) |
Destructor
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.
[in] | map | Transformation to compose with. |
Implements cv::reg::Map.
|
inline |
Returns projection matrix
|
inline |
|
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.
[in] | img1 | Original image |
[out] | img2 | Warped image |
Implements cv::reg::Map.
|
inline |
Normalizes object's homography
|
virtual |
Scales the map by a given factor as if the coordinates system is expanded/compressed by that factor.
[in] | factor | Expansion if bigger than one, compression if smaller than one |
Implements cv::reg::Map.