Class cv::reg::Map#
Base class for modelling a Map between two images. View details
#include <opencv2/reg/map.hpp>Collaboration diagram for cv::reg::Map:
Detailed Description#
Base class for modelling a Map between two images.
The class is only used to define the common interface for any possible map.
Constructor & Destructor Documentation#
~Map()#
Virtual destructor
Member Function Documentation#
compose()#
void cv::reg::Map::compose(cv::Ptr< Map > map)
Python:
cv.reg.Map.compose(map)
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
map— Transformation to compose with.
inverseMap()#
cv::Ptr< Map > cv::reg::Map::inverseMap()
Python:
cv.reg.Map.inverseMap() -> retval
Calculates the inverse map
Returns
Inverse map
inverseWarp()#
void cv::reg::Map::inverseWarp(
InputArray img1,
OutputArray img2 )
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
img1— Original imageimg2— Warped image
scale()#
void cv::reg::Map::scale(double factor)
Python:
cv.reg.Map.scale(factor)
Scales the map by a given factor as if the coordinates system is expanded/compressed by that factor.
Parameters
factor— Expansion if bigger than one, compression if smaller than one
warp()#
void cv::reg::Map::warp(
InputArray img1,
OutputArray img2 )
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
img1— Original imageimg2— Warped image
Source file#
The documentation for this class was generated from the following file:
opencv2/reg/map.hpp