Commit b1c0bf1f authored by Anatoly Baksheev's avatar Anatoly Baksheev

Affine::rotate(rvec) method

parent 16155274
...@@ -99,6 +99,9 @@ namespace cv ...@@ -99,6 +99,9 @@ namespace cv
// a.rotate(R) is equivalent to Affine(R, 0) * a; // a.rotate(R) is equivalent to Affine(R, 0) * a;
Affine3 rotate(const Mat3& R) const; Affine3 rotate(const Mat3& R) const;
// a.rotate(R) is equivalent to Affine(rvec, 0) * a;
Affine3 rotate(const Vec3& rvec) const;
// a.translate(t) is equivalent to Affine(E, t) * a; // a.translate(t) is equivalent to Affine(E, t) * a;
Affine3 translate(const Vec3& t) const; Affine3 translate(const Vec3& t) const;
...@@ -361,6 +364,12 @@ cv::Affine3<T> cv::Affine3<T>::rotate(const Mat3& R) const ...@@ -361,6 +364,12 @@ cv::Affine3<T> cv::Affine3<T>::rotate(const Mat3& R) const
return result; return result;
} }
template<typename T> inline
cv::Affine3<T> cv::Affine3<T>::rotate(const Vec3& _rvec) const
{
return rotate(Affine3f(_rvec).rotation());
}
template<typename T> inline template<typename T> inline
cv::Affine3<T> cv::Affine3<T>::translate(const Vec3& t) const cv::Affine3<T> cv::Affine3<T>::translate(const Vec3& t) const
{ {
......
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