mirror of
https://github.com/opencv/opencv.git
synced 2024-12-01 14:59:54 +08:00
added Affine3 ctor from array
This commit is contained in:
parent
baee8c3aa5
commit
3e071491c9
@ -73,6 +73,9 @@ namespace cv
|
|||||||
//Combines all contructors above. Supports 4x4, 3x3, 1x3, 3x1 sizes of data matrix
|
//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));
|
explicit Affine3(const cv::Mat& data, const Vec3& t = Vec3::all(0));
|
||||||
|
|
||||||
|
//From 16th element array
|
||||||
|
Affine3(const float_type* vals);
|
||||||
|
|
||||||
static Affine3 Identity();
|
static Affine3 Identity();
|
||||||
|
|
||||||
//Rotation matrix
|
//Rotation matrix
|
||||||
@ -183,6 +186,10 @@ cv::Affine3<T>::Affine3(const cv::Mat& data, const Vec3& t)
|
|||||||
matrix.val[15] = 1;
|
matrix.val[15] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<typename T> inline
|
||||||
|
cv::Affine3<T>::Affine3(const float_type* vals) : matrix(vals)
|
||||||
|
{}
|
||||||
|
|
||||||
template<typename T> inline
|
template<typename T> inline
|
||||||
cv::Affine3<T> cv::Affine3<T>::Identity()
|
cv::Affine3<T> cv::Affine3<T>::Identity()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user