Commit 546c084f authored by Anatoly Baksheev's avatar Anatoly Baksheev

fixed shadow error and added ocv_disable_module

parent 0e88733b
...@@ -161,9 +161,9 @@ cv::Affine3<T>::Affine3(const Mat3& R, const Vec3& t) ...@@ -161,9 +161,9 @@ cv::Affine3<T>::Affine3(const Mat3& R, const Vec3& t)
} }
template<typename T> inline template<typename T> inline
cv::Affine3<T>::Affine3(const Vec3& rvec, const Vec3& t) cv::Affine3<T>::Affine3(const Vec3& _rvec, const Vec3& t)
{ {
rotation(rvec); rotation(_rvec);
translation(t); translation(t);
matrix.val[12] = matrix.val[13] = matrix.val[14] = 0; matrix.val[12] = matrix.val[13] = matrix.val[14] = 0;
matrix.val[15] = 1; matrix.val[15] = 1;
...@@ -208,9 +208,9 @@ void cv::Affine3<T>::rotation(const Mat3& R) ...@@ -208,9 +208,9 @@ void cv::Affine3<T>::rotation(const Mat3& R)
} }
template<typename T> inline template<typename T> inline
void cv::Affine3<T>::rotation(const Vec3& rvec) void cv::Affine3<T>::rotation(const Vec3& _rvec)
{ {
double rx = rvec[0], ry = rvec[1], rz = rvec[2]; double rx = _rvec[0], ry = _rvec[1], rz = _rvec[2];
double theta = std::sqrt(rx*rx + ry*ry + rz*rz); double theta = std::sqrt(rx*rx + ry*ry + rz*rz);
if (theta < DBL_EPSILON) if (theta < DBL_EPSILON)
...@@ -253,9 +253,9 @@ void cv::Affine3<T>::rotation(const cv::Mat& data) ...@@ -253,9 +253,9 @@ void cv::Affine3<T>::rotation(const cv::Mat& data)
} }
else if ((data.cols == 3 && data.rows == 1) || (data.cols == 1 && data.rows == 3)) else if ((data.cols == 3 && data.rows == 1) || (data.cols == 1 && data.rows == 3))
{ {
Vec3 rvec; Vec3 _rvec;
data.reshape(1, 3).copyTo(rvec); data.reshape(1, 3).copyTo(_rvec);
rotation(rvec); rotation(_rvec);
} }
else else
CV_Assert(!"Input marix can be 3x3, 1x3 or 3x1"); CV_Assert(!"Input marix can be 3x3, 1x3 or 3x1");
......
if(NOT WITH_VTK OR NOT DEFINED HAVE_VTK OR NOT HAVE_VTK) if(NOT WITH_VTK OR NOT DEFINED HAVE_VTK OR NOT HAVE_VTK)
return() ocv_module_disable()
endif() endif()
include(${VTK_USE_FILE}) include(${VTK_USE_FILE})
......
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