diff --git a/modules/ccalib/src/ccalib.cpp b/modules/ccalib/src/ccalib.cpp index b22b0116584..d409ba2f25f 100644 --- a/modules/ccalib/src/ccalib.cpp +++ b/modules/ccalib/src/ccalib.cpp @@ -247,12 +247,9 @@ void CustomPattern::check_matches(vector& matched, const vector= MAX_PROJ_ERROR_PX) { deleteStdVecElem(good, i); @@ -260,10 +257,6 @@ void CustomPattern::check_matches(vector& matched, const vector >& patter Mat& disparityMap_ = *( Mat* ) disparityMap.getObj(); disparityMap_ = Mat( cam_height, cam_width, CV_64F, double( 0 ) ); - double number_of_pixels_cam1 = 0; - double number_of_pixels_cam2 = 0; - for( int i = 0; i < params.width; i++ ) { for( int j = 0; j < params.height; j++ ) @@ -278,8 +275,6 @@ bool GrayCodePattern_Impl::decode( const std::vector< std::vector >& patter double sump1x = 0; double sump2x = 0; - number_of_pixels_cam1 += cam1Pixs.size(); - number_of_pixels_cam2 += cam2Pixs.size(); for( int c1 = 0; c1 < (int) cam1Pixs.size(); c1++ ) { p1 = cam1Pixs[c1]; diff --git a/modules/tracking/src/multiTracker.cpp b/modules/tracking/src/multiTracker.cpp index fe8dcbdcf8b..4db208ae7c2 100644 --- a/modules/tracking/src/multiTracker.cpp +++ b/modules/tracking/src/multiTracker.cpp @@ -266,7 +266,6 @@ namespace cv Mat tmp; int dx = initSize.width / 10, dy = initSize.height / 10; Size2d size = img.size(); - double scale = 1.0; int npos = 0, nneg = 0; double maxSc = -5.0; Rect2d maxScRect; @@ -335,7 +334,6 @@ namespace cv scaleID++; size.width /= tld::SCALE_STEP; size.height /= tld::SCALE_STEP; - scale *= tld::SCALE_STEP; resize(img, tmp, size, 0, 0, tld::DOWNSCALE_MODE); resized_imgs.push_back(tmp); GaussianBlur(resized_imgs[scaleID], tmp, tld::GaussBlurKernelSize, 0.0f); diff --git a/modules/tracking/src/tldDetector.cpp b/modules/tracking/src/tldDetector.cpp index bb52a4899e3..bcf80e6a7dc 100644 --- a/modules/tracking/src/tldDetector.cpp +++ b/modules/tracking/src/tldDetector.cpp @@ -363,7 +363,6 @@ namespace cv Mat tmp; int dx = initSize.width / 10, dy = initSize.height / 10; Size2d size = img.size(); - double scale = 1.0; int npos = 0, nneg = 0; double maxSc = -5.0; Rect2d maxScRect; @@ -398,7 +397,6 @@ namespace cv scaleID++; size.width /= SCALE_STEP; size.height /= SCALE_STEP; - scale *= SCALE_STEP; resize(img, tmp, size, 0, 0, DOWNSCALE_MODE); resized_imgs.push_back(tmp); GaussianBlur(resized_imgs[scaleID], tmp, GaussBlurKernelSize, 0.0f); diff --git a/modules/ximgproc/src/brightedges.cpp b/modules/ximgproc/src/brightedges.cpp index 5daff1c27d3..028bf326119 100644 --- a/modules/ximgproc/src/brightedges.cpp +++ b/modules/ximgproc/src/brightedges.cpp @@ -150,7 +150,7 @@ namespace cv iedge.ptr(row + 1)[col + 2] + iedge.ptr(row - 1)[col + 2]; if (line < weight) lines += 1; - if (line == 1) return 0; + if (lines == 1) return 0; // Compute surrounding pixels for dark zone int surround = iedge.ptr(row - 1)[col - 1] + iedge.ptr(row - 1)[col] +