Class cv::reg::MapShift#

Collaboration diagram for cv::reg::MapShift:

Public Member Functions#

Public Member Functions inherited from cv::reg::Map

Detailed Description#

Defines an transformation that consists on a simple displacement

Constructor & Destructor Documentation#

MapShift()#

cv::reg::MapShift::MapShift()

Python:

cv.reg.MapShift() -> <reg_MapShift object>
cv.reg.MapShift(shift) -> <reg_MapShift object>

Default constructor builds an identity map

MapShift()#

cv::reg::MapShift::MapShift(InputArray shift)

Python:

cv.reg.MapShift() -> <reg_MapShift object>
cv.reg.MapShift(shift) -> <reg_MapShift object>

Constructor providing explicit values

Parameters

  • shift — Displacement

~MapShift()#

cv::reg::MapShift::~MapShift()

Destructor

Member Function Documentation#

compose()#

void cv::reg::MapShift::compose(cv::Ptr< Map > map)

Python:

cv.reg.MapShift.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.

getShift()#

const cv::Vec< double, 2 > & cv::reg::MapShift::getShift()

Python:

cv.reg.MapShift.getShift([, shift]) -> shift

Return displacement

Returns

Displacement

getShift()#

void cv::reg::MapShift::getShift(OutputArray shift)

Python:

cv.reg.MapShift.getShift([, shift]) -> shift

Here is the call graph for this function:

cv::reg::MapShift::getShift Node1 cv::reg::MapShift:: getShift Node2 cv::Mat::copyTo Node1->Node2

cv::reg::MapShift::getShift Node1 cv::reg::MapShift:: getShift Node2 cv::Mat::copyTo Node1->Node2

inverseMap()#

cv::Ptr< Map > cv::reg::MapShift::inverseMap()

Python:

cv.reg.MapShift.inverseMap() -> retval

Calculates the inverse map

Returns

Inverse map

inverseWarp()#

void cv::reg::MapShift::inverseWarp(
InputArray img1,
OutputArray img2 )

Python:

cv.reg.MapShift.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 image

  • img2 — Warped image

scale()#

void cv::reg::MapShift::scale(double factor)

Python:

cv.reg.MapShift.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

Member Data Documentation#

shift_#

cv::Vec< double, 2 > cv::reg::MapShift::shift_

Source file#

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