From 9e10c09f2d853cdb73b64c7432d6d293ca45659a Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Thu, 17 Apr 2014 00:14:13 +0300 Subject: [PATCH 1/3] remove unused variable in LineSegmentDetectorImpl::compareSegments() --- modules/imgproc/src/lsd.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/imgproc/src/lsd.cpp b/modules/imgproc/src/lsd.cpp index 6138cfce7e..0e82a39029 100644 --- a/modules/imgproc/src/lsd.cpp +++ b/modules/imgproc/src/lsd.cpp @@ -1198,7 +1198,6 @@ int LineSegmentDetectorImpl::compareSegments(const Size& size, InputArray lines1 _lines1 = lines1.getMat(); _lines2 = lines2.getMat(); // Draw segments - std::vector _lines; for(int i = 0; i < _lines1.size().width; ++i) { Point b(_lines1.at(i)[0], _lines1.at(i)[1]); From dba0f9fc8f8127f5252517d04d5b2a476ad90228 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Thu, 17 Apr 2014 00:16:07 +0300 Subject: [PATCH 2/3] remove unused variable in erGrouping() --- modules/objdetect/src/erfilter.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/objdetect/src/erfilter.cpp b/modules/objdetect/src/erfilter.cpp index dc8f18caf6..e942094b1d 100644 --- a/modules/objdetect/src/erfilter.cpp +++ b/modules/objdetect/src/erfilter.cpp @@ -2934,7 +2934,6 @@ void erGrouping(InputArrayOfArrays _src, vector > ®ions, const float a1=((int)meaningful_clusters.at(i).size()*sumxy-sumx*sumy) / ((int)meaningful_clusters.at(i).size()*sumx2-sumx*sumx); - vector data; if (a1 != a1) data_arrays.at(i).push_back(1.f); else From 3e5a69d8ba3875465383f609cdfde859179150cb Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Thu, 17 Apr 2014 00:19:04 +0300 Subject: [PATCH 3/3] remove unused variables in OCL_PERF_TEST_P() --- modules/video/perf/opencl/perf_optflow_pyrlk.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/video/perf/opencl/perf_optflow_pyrlk.cpp b/modules/video/perf/opencl/perf_optflow_pyrlk.cpp index b2492e1141..1d7e643d52 100644 --- a/modules/video/perf/opencl/perf_optflow_pyrlk.cpp +++ b/modules/video/perf/opencl/perf_optflow_pyrlk.cpp @@ -83,9 +83,7 @@ OCL_PERF_TEST_P(PyrLKOpticalFlowFixture, PyrLKOpticalFlow, const PyrLKOpticalFlowParams params = GetParam(); const int pointsCount = get<0>(params); - vector pts, nextPts; - vector status; - vector err; + vector pts; goodFeaturesToTrack(frame0, pts, pointsCount, 0.01, 0.0); Mat ptsMat(1, static_cast(pts.size()), CV_32FC2, (void *)&pts[0]); @@ -99,4 +97,4 @@ OCL_PERF_TEST_P(PyrLKOpticalFlowFixture, PyrLKOpticalFlow, } } // namespace cvtest::ocl -#endif // HAVE_OPENCL \ No newline at end of file +#endif // HAVE_OPENCL