From 768da4d95a77d8a7248350d53e0337b507041072 Mon Sep 17 00:00:00 2001 From: Chechli Date: Tue, 18 Feb 2014 08:50:33 +0100 Subject: [PATCH] Update hough_circles.cpp --- modules/cudaimgproc/src/hough_circles.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/cudaimgproc/src/hough_circles.cpp b/modules/cudaimgproc/src/hough_circles.cpp index d78919d..2a3abe4 100644 --- a/modules/cudaimgproc/src/hough_circles.cpp +++ b/modules/cudaimgproc/src/hough_circles.cpp @@ -140,8 +140,8 @@ namespace Ptr filterDy_; Ptr canny_; }; - - bool centersCompare(Vec3f a, Vec3f b) {return (a[2] > b[2]);} + + bool centersCompare(Vec3f a, Vec3f b) {return (a[2] > b[2]);} HoughCirclesDetectorImpl::HoughCirclesDetectorImpl(float dp, float minDist, int cannyThreshold, int votesThreshold, int minRadius, int maxRadius, int maxCircles) : @@ -195,9 +195,9 @@ namespace accum_.setTo(Scalar::all(0)); circlesAccumCenters_gpu(srcPoints, pointsCount, dx_, dy_, accum_, minRadius_, maxRadius_, idp); - + accum_.download(tt); - + int centersCount = buildCentersList_gpu(accum_, centers, votesThreshold_); if (centersCount == 0) { -- 2.7.4