From 6ce2277cc7c4d41ddc993b3bd57a6b8d47b6e238 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Wed, 17 Aug 2011 09:19:46 +0000 Subject: [PATCH] fixed multi-scale Hough transform (ticket #1320) --- modules/imgproc/src/hough.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/hough.cpp b/modules/imgproc/src/hough.cpp index 20e9a4ca13..54d1f44a42 100644 --- a/modules/imgproc/src/hough.cpp +++ b/modules/imgproc/src/hough.cpp @@ -325,7 +325,7 @@ icvHoughLinesSDiv( const CvMat* img, { for( ti = 0; ti < tn; ti++ ) { - if( caccum[ri * tn + ti > threshold] ) + if( caccum[ri * tn + ti] > threshold ) { count++; }