Class cv::reg::MapProjec#

Collaboration diagram for cv::reg::MapProjec:

Public Member Functions#

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

Detailed Description#

Defines an transformation that consists on a projective transformation

Constructor & Destructor Documentation#

MapProjec()#

cv::reg::MapProjec::MapProjec()

Python:

cv.reg.MapProjec() -> <reg_MapProjec object>
cv.reg.MapProjec(projTr) -> <reg_MapProjec object>

Default constructor builds an identity map

MapProjec()#

cv::reg::MapProjec::MapProjec(InputArray projTr)

Python:

cv.reg.MapProjec() -> <reg_MapProjec object>
cv.reg.MapProjec(projTr) -> <reg_MapProjec object>

Constructor providing explicit values

Parameters

  • projTr — Projective transformation

~MapProjec()#

cv::reg::MapProjec::~MapProjec()

Destructor

Member Function Documentation#

compose()#

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

Python:

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

getProjTr()#

const cv::Matx< double, 3, 3 > & cv::reg::MapProjec::getProjTr()

Python:

cv.reg.MapProjec.getProjTr([, projTr]) -> projTr

Returns projection matrix

Returns

Projection matrix

getProjTr()#

void cv::reg::MapProjec::getProjTr(OutputArray projTr)

Python:

cv.reg.MapProjec.getProjTr([, projTr]) -> projTr

Here is the call graph for this function:

cv::reg::MapProjec::getProjTr Node1 cv::reg::MapProjec ::getProjTr Node2 cv::Mat::copyTo Node1->Node2

cv::reg::MapProjec::getProjTr Node1 cv::reg::MapProjec ::getProjTr Node2 cv::Mat::copyTo Node1->Node2

inverseMap()#

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

Python:

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

Calculates the inverse map

Returns

Inverse map

inverseWarp()#

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

Python:

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

normalize()#

void cv::reg::MapProjec::normalize()

Python:

cv.reg.MapProjec.normalize()

Normalizes object’s homography

scale()#

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

Python:

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

projTr_#

cv::Matx< double, 3, 3 > cv::reg::MapProjec::projTr_

Source file#

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