added Affine3: 3x4 input Mat support

This commit is contained in:
Anatoly Baksheev 2014-01-02 16:16:29 +04:00
parent 3e071491c9
commit a76a34d28e

View File

@ -179,6 +179,12 @@ cv::Affine3<T>::Affine3(const cv::Mat& data, const Vec3& t)
data.copyTo(matrix);
return;
}
else if (data.cols == 4 && data.rows == 3)
{
rotation(data(Rect(0, 0, 3, 3)));
translation(data(Rect(3, 0, 1, 3)));
return;
}
rotation(data);
translation(t);