Class cv::reg::MapAffine#

Collaboration diagram for cv::reg::MapAffine:

Public Member Functions#

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

Detailed Description#

Defines an affine transformation

Constructor & Destructor Documentation#

MapAffine()#

cv::reg::MapAffine::MapAffine()

Python:

cv.reg.MapAffine() -> <reg_MapAffine object>
cv.reg.MapAffine(linTr, shift) -> <reg_MapAffine object>

Default constructor builds an identity map

MapAffine()#

cv::reg::MapAffine::MapAffine(
InputArray linTr,
InputArray shift )

Python:

cv.reg.MapAffine() -> <reg_MapAffine object>
cv.reg.MapAffine(linTr, shift) -> <reg_MapAffine object>

Constructor providing explicit values

Parameters

  • linTr — Linear part of the affine transformation

  • shift — Displacement part of the affine transformation

~MapAffine()#

cv::reg::MapAffine::~MapAffine()

Destructor

Member Function Documentation#

compose()#

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

Python:

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

getLinTr()#

const cv::Matx< double, 2, 2 > & cv::reg::MapAffine::getLinTr()

Python:

cv.reg.MapAffine.getLinTr([, linTr]) -> linTr

Return linear part of the affine transformation

Returns

Linear part of the affine transformation

getLinTr()#

void cv::reg::MapAffine::getLinTr(OutputArray linTr)

Python:

cv.reg.MapAffine.getLinTr([, linTr]) -> linTr

Here is the call graph for this function:

cv::reg::MapAffine::getLinTr Node1 cv::reg::MapAffine ::getLinTr Node2 cv::Mat::copyTo Node1->Node2

cv::reg::MapAffine::getLinTr Node1 cv::reg::MapAffine ::getLinTr Node2 cv::Mat::copyTo Node1->Node2

getShift()#

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

Python:

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

Return displacement part of the affine transformation

Returns

Displacement part of the affine transformation

getShift()#

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

Python:

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

Here is the call graph for this function:

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

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

inverseMap()#

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

Python:

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

Calculates the inverse map

Returns

Inverse map

inverseWarp()#

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

Python:

cv.reg.MapAffine.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::MapAffine::scale(double factor)

Python:

cv.reg.MapAffine.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#

linTr_#

cv::Matx< double, 2, 2 > cv::reg::MapAffine::linTr_

shift_#

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

Source file#

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