Base class for modelling a Map between two images.
More...
#include <opencv2/reg/map.hpp>
Base class for modelling a Map between two images.
The class is only used to define the common interface for any possible map.
◆ ~Map()
| virtual cv::reg::Map::~Map |
( |
| ) |
|
|
virtual |
◆ compose()
| virtual void cv::reg::Map::compose |
( |
cv::Ptr< Map > | map | ) |
|
|
pure virtual |
| Python: |
|---|
| cv.reg.Map.compose( | map | ) -> | None |
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] | map | Transformation to compose with. |
Implemented in cv::reg::MapAffine, cv::reg::MapProjec, and cv::reg::MapShift.
◆ inverseMap()
| virtual cv::Ptr< Map > cv::reg::Map::inverseMap |
( |
| ) |
const |
|
pure virtual |
| Python: |
|---|
| cv.reg.Map.inverseMap( | | ) -> | retval |
◆ inverseWarp()
| Python: |
|---|
| cv.reg.Map.inverseWarp( | img1[, img2] | ) -> | img2 |
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] | img1 | Original image |
| [out] | img2 | Warped image |
Implemented in cv::reg::MapAffine, cv::reg::MapProjec, and cv::reg::MapShift.
◆ scale()
| virtual void cv::reg::Map::scale |
( |
double | factor | ) |
|
|
pure virtual |
| Python: |
|---|
| cv.reg.Map.scale( | factor | ) -> | None |
◆ warp()
| Python: |
|---|
| cv.reg.Map.warp( | img1[, img2] | ) -> | img2 |
Warps image to a new coordinate frame. The calculation is img2(x)=img1(T^{-1}(x)), as we have to apply the inverse transformation to the points to move them to were the values of img2 are.
- Parameters
-
| [in] | img1 | Original image |
| [out] | img2 | Warped image |
The documentation for this class was generated from the following file: