Update hough_circles.cpp
authorChechli <lukasz.chechlinski@gmail.com>
Mon, 17 Feb 2014 08:50:32 +0000 (09:50 +0100)
committerChechli <lukasz.chechlinski@gmail.com>
Mon, 17 Feb 2014 08:50:32 +0000 (09:50 +0100)
modules/cudaimgproc/src/hough_circles.cpp

index 68c87b6..d78919d 100644 (file)
@@ -41,7 +41,6 @@
 //M*/
 
 #include "precomp.hpp"
-#include <algorithm>
 
 using namespace cv;
 using namespace cv::cuda;
@@ -134,6 +133,7 @@ namespace
         GpuMat dx_, dy_;
         GpuMat edges_;
         GpuMat accum_;
+        Mat tt; //CPU copy of accum_
         GpuMat list_;
         GpuMat result_;
         Ptr<cuda::Filter> filterDx_;
@@ -196,7 +196,6 @@ namespace
 
         circlesAccumCenters_gpu(srcPoints, pointsCount, dx_, dy_, accum_, minRadius_, maxRadius_, idp);
         
-        Mat tt; //CPU copy of accum_
         accum_.download(tt);
         
         int centersCount = buildCentersList_gpu(accum_, centers, votesThreshold_);