Commit 2ca605a1 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #1051 from paroj:pyreg_fixup

parents f9fb12d1 e3d8f7fa
......@@ -62,7 +62,7 @@ public:
* \param[in] linTr Linear part of the affine transformation
* \param[in] shift Displacement part of the affine transformation
*/
MapAffine(const cv::Matx<double, 2, 2>& linTr, const cv::Vec<double, 2>& shift);
CV_WRAP MapAffine(InputArray linTr, InputArray shift);
/*!
* Destructor
......
......@@ -62,7 +62,7 @@ public:
* Constructor providing explicit values
* \param[in] projTr Projective transformation
*/
MapProjec(const cv::Matx<double, 3, 3>& projTr);
CV_WRAP MapProjec(InputArray projTr);
/*!
* Destructor
......
......@@ -51,8 +51,8 @@ MapAffine::MapAffine()
}
////////////////////////////////////////////////////////////////////////////////////////////////////
MapAffine::MapAffine(const Matx<double, 2, 2>& linTr, const Vec<double, 2>& shift)
: linTr_(linTr), shift_(shift)
MapAffine::MapAffine(InputArray linTr, InputArray shift)
: linTr_(linTr.getMat()), shift_(shift.getMat())
{
}
......
......@@ -51,8 +51,8 @@ MapProjec::MapProjec()
}
////////////////////////////////////////////////////////////////////////////////////////////////////
MapProjec::MapProjec(const Matx<double, 3, 3>& projTr)
: projTr_(projTr)
MapProjec::MapProjec(InputArray projTr)
: projTr_(projTr.getMat())
{
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment