From 546c084fe60b1c3c0abd13810ba0116733ee9ec9 Mon Sep 17 00:00:00 2001 From: Anatoly Baksheev Date: Tue, 26 Nov 2013 13:29:50 +0400 Subject: [PATCH] fixed shadow error and added ocv_disable_module --- modules/core/include/opencv2/core/affine.hpp | 14 +++++++------- modules/viz/CMakeLists.txt | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/core/include/opencv2/core/affine.hpp b/modules/core/include/opencv2/core/affine.hpp index fa7eed8..fefcef8 100644 --- a/modules/core/include/opencv2/core/affine.hpp +++ b/modules/core/include/opencv2/core/affine.hpp @@ -161,9 +161,9 @@ cv::Affine3::Affine3(const Mat3& R, const Vec3& t) } template inline -cv::Affine3::Affine3(const Vec3& rvec, const Vec3& t) +cv::Affine3::Affine3(const Vec3& _rvec, const Vec3& t) { - rotation(rvec); + rotation(_rvec); translation(t); matrix.val[12] = matrix.val[13] = matrix.val[14] = 0; matrix.val[15] = 1; @@ -208,9 +208,9 @@ void cv::Affine3::rotation(const Mat3& R) } template inline -void cv::Affine3::rotation(const Vec3& rvec) +void cv::Affine3::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); if (theta < DBL_EPSILON) @@ -253,9 +253,9 @@ void cv::Affine3::rotation(const cv::Mat& data) } else if ((data.cols == 3 && data.rows == 1) || (data.cols == 1 && data.rows == 3)) { - Vec3 rvec; - data.reshape(1, 3).copyTo(rvec); - rotation(rvec); + Vec3 _rvec; + data.reshape(1, 3).copyTo(_rvec); + rotation(_rvec); } else CV_Assert(!"Input marix can be 3x3, 1x3 or 3x1"); diff --git a/modules/viz/CMakeLists.txt b/modules/viz/CMakeLists.txt index 93df8be..6da1afc 100644 --- a/modules/viz/CMakeLists.txt +++ b/modules/viz/CMakeLists.txt @@ -1,5 +1,5 @@ if(NOT WITH_VTK OR NOT DEFINED HAVE_VTK OR NOT HAVE_VTK) - return() + ocv_module_disable() endif() include(${VTK_USE_FILE}) -- 2.7.4