Commit 3e071491 authored by Anatoly Baksheev's avatar Anatoly Baksheev

added Affine3 ctor from array

parent baee8c3a
......@@ -73,6 +73,9 @@ namespace cv
//Combines all contructors above. Supports 4x4, 3x3, 1x3, 3x1 sizes of data matrix
explicit Affine3(const cv::Mat& data, const Vec3& t = Vec3::all(0));
//From 16th element array
Affine3(const float_type* vals);
static Affine3 Identity();
//Rotation matrix
......@@ -183,6 +186,10 @@ cv::Affine3<T>::Affine3(const cv::Mat& data, const Vec3& t)
matrix.val[15] = 1;
}
template<typename T> inline
cv::Affine3<T>::Affine3(const float_type* vals) : matrix(vals)
{}
template<typename T> inline
cv::Affine3<T> cv::Affine3<T>::Identity()
{
......
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