OpenCV
3.0.0-rc1
Open Source Computer Vision
|
#include "mapaffine.hpp"
Public Member Functions | |
MapAffine (void) | |
MapAffine (const cv::Matx< double, 2, 2 > &linTr, const cv::Vec< double, 2 > &shift) | |
~MapAffine (void) | |
void | compose (const Map &map) |
const cv::Matx< double, 2, 2 > & | getLinTr () const |
const cv::Vec< double, 2 > & | getShift () const |
cv::Ptr< Map > | inverseMap (void) const |
void | inverseWarp (const cv::Mat &img1, cv::Mat &img2) const |
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 |
Defines an affine transformation
cv::reg::MapAffine::MapAffine | ( | void | ) |
Default constructor builds an identity map
cv::reg::MapAffine::MapAffine | ( | const cv::Matx< double, 2, 2 > & | linTr, |
const cv::Vec< double, 2 > & | shift | ||
) |
Constructor providing explicit values
[in] | linTr | Linear part of the affine transformation |
[in] | shift | Displacement part of the affine transformation |
cv::reg::MapAffine::~MapAffine | ( | void | ) |
Destructor
|
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.
[in] | map | Transformation to compose with. |
Implements cv::reg::Map.
|
inline |
Return linear part of the affine transformation
|
inline |
Return displacement part of the affine transformation
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.
|
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.