From a01659825c485e060537837a1942c599c9dd8060 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Wed, 9 Apr 2014 22:53:36 +0300 Subject: [PATCH 1/7] remove unused variable in loadFromXML() --- modules/gpu/src/cascadeclassifier.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/gpu/src/cascadeclassifier.cpp b/modules/gpu/src/cascadeclassifier.cpp index 7b95b69091..65b74a4338 100644 --- a/modules/gpu/src/cascadeclassifier.cpp +++ b/modules/gpu/src/cascadeclassifier.cpp @@ -778,8 +778,6 @@ NCVStatus loadFromXML(const std::string &filename, haar.bNeedsTiltedII = false; Ncv32u curMaxTreeDepth; - std::vector xmlFileCont; - std::vector h_TmpClassifierNotRootNodes; haarStages.resize(0); haarClassifierNodes.resize(0); From 9b52b614516a0a7286fee08dddf574e1ec6e6188 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Wed, 9 Apr 2014 22:56:19 +0300 Subject: [PATCH 2/7] remove unused variable in HOGDescriptor::groupRectangles() --- modules/objdetect/src/hog.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/objdetect/src/hog.cpp b/modules/objdetect/src/hog.cpp index 41744f6d5f..c140f3bf72 100644 --- a/modules/objdetect/src/hog.cpp +++ b/modules/objdetect/src/hog.cpp @@ -2651,7 +2651,6 @@ void HOGDescriptor::groupRectangles(vector& rectList, vector& vector > rrects(nclasses); vector numInClass(nclasses, 0); vector foundWeights(nclasses, DBL_MIN); - vector totalFactorsPerClass(nclasses, 1); int i, j, nlabels = (int)labels.size(); for( i = 0; i < nlabels; i++ ) From eb45cf0c93e08cbb392f239417007d9fd71985e7 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Wed, 9 Apr 2014 22:59:52 +0300 Subject: [PATCH 3/7] remove unused variable in findCorners_caller() --- modules/ocl/src/gftt.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/ocl/src/gftt.cpp b/modules/ocl/src/gftt.cpp index 57ed12f009..4f204d6f43 100644 --- a/modules/ocl/src/gftt.cpp +++ b/modules/ocl/src/gftt.cpp @@ -110,7 +110,6 @@ static void findCorners_caller( oclMat& counter) //output value with number of detected corners, have to be 0 before call { string opt; - std::vector k; Context * cxt = Context::getContext(); std::vector< std::pair > args; From befbe89bdfa0ccccb7499aee16c265ceff551f65 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Wed, 9 Apr 2014 23:01:49 +0300 Subject: [PATCH 4/7] remove unused variable in ocl_moments() --- modules/ocl/src/moments.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ocl/src/moments.cpp b/modules/ocl/src/moments.cpp index f11d381c98..216e9ab29a 100644 --- a/modules/ocl/src/moments.cpp +++ b/modules/ocl/src/moments.cpp @@ -266,7 +266,7 @@ namespace cv int src_step = (int)(src.step/src.elemSize()); int dstm_step = (int)(dst_m.step/dst_m.elemSize()); - vector > args,args_sum; + vector > args; args.push_back( make_pair( sizeof(cl_mem) , (void *)&src.data )); args.push_back( make_pair( sizeof(cl_int) , (void *)&src.rows )); args.push_back( make_pair( sizeof(cl_int) , (void *)&src.cols )); @@ -384,4 +384,4 @@ namespace cv return mom; } } -} \ No newline at end of file +} From 79eb3c5cde774cc0caab98401ebc44278efd378f Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Wed, 9 Apr 2014 23:04:29 +0300 Subject: [PATCH 5/7] remove unused variable in OCL_PERF_TEST_P() --- modules/ocl/perf/perf_imgproc.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/ocl/perf/perf_imgproc.cpp b/modules/ocl/perf/perf_imgproc.cpp index 05b948649c..6d859a94c0 100644 --- a/modules/ocl/perf/perf_imgproc.cpp +++ b/modules/ocl/perf/perf_imgproc.cpp @@ -630,7 +630,6 @@ typedef TestBaseWithParam CLAHEFixture; OCL_PERF_TEST_P(CLAHEFixture, CLAHE, OCL_TEST_SIZES) { const Size srcSize = GetParam(); - const string impl = getSelectedImpl(); Mat src(srcSize, CV_8UC1), dst; const double clipLimit = 40.0; From 29d1bce85fd6e927b21a494c96d45c786bb78177 Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Wed, 9 Apr 2014 23:06:06 +0300 Subject: [PATCH 6/7] remove unused variable in TEST_P() --- modules/core/test/test_arithm.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/core/test/test_arithm.cpp b/modules/core/test/test_arithm.cpp index 8fec388df8..a240941847 100644 --- a/modules/core/test/test_arithm.cpp +++ b/modules/core/test/test_arithm.cpp @@ -1363,7 +1363,6 @@ TEST_P(ElemWiseTest, accuracy) op->op(src, dst, mask); double maxErr = op->getMaxErr(depth); - vector pos; ASSERT_PRED_FORMAT2(cvtest::MatComparator(maxErr, op->context), dst0, dst) << "\nsrc[0] ~ " << cvtest::MatInfo(!src.empty() ? src[0] : Mat()) << "\ntestCase #" << testIdx << "\n"; } } From eb89f5207cb42a7e1bfc4378fa96e7e49b58476d Mon Sep 17 00:00:00 2001 From: Maks Naumov Date: Wed, 9 Apr 2014 23:07:48 +0300 Subject: [PATCH 7/7] remove unused variables in CV_KDTreeTest_CPP::findNeighbors() --- modules/features2d/test/test_nearestneighbors.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/features2d/test/test_nearestneighbors.cpp b/modules/features2d/test/test_nearestneighbors.cpp index 45131eff2e..8d1ecfd79a 100644 --- a/modules/features2d/test/test_nearestneighbors.cpp +++ b/modules/features2d/test/test_nearestneighbors.cpp @@ -214,8 +214,6 @@ int CV_KDTreeTest_CPP::findNeighbors( Mat& points, Mat& neighbors ) const int emax = 20; Mat neighbors2( neighbors.size(), CV_32SC1 ); int j; - vector min(points.cols, static_cast(minValue)); - vector max(points.cols, static_cast(maxValue)); for( int pi = 0; pi < points.rows; pi++ ) { // 1st way