Update hough_circles.cpp
This commit is contained in:
parent
640a45d359
commit
9211d1ac2d
@ -41,7 +41,6 @@
|
|||||||
//M*/
|
//M*/
|
||||||
|
|
||||||
#include "precomp.hpp"
|
#include "precomp.hpp"
|
||||||
#include <algorithm>
|
|
||||||
|
|
||||||
using namespace cv;
|
using namespace cv;
|
||||||
using namespace cv::cuda;
|
using namespace cv::cuda;
|
||||||
@ -134,6 +133,7 @@ namespace
|
|||||||
GpuMat dx_, dy_;
|
GpuMat dx_, dy_;
|
||||||
GpuMat edges_;
|
GpuMat edges_;
|
||||||
GpuMat accum_;
|
GpuMat accum_;
|
||||||
|
Mat tt; //CPU copy of accum_
|
||||||
GpuMat list_;
|
GpuMat list_;
|
||||||
GpuMat result_;
|
GpuMat result_;
|
||||||
Ptr<cuda::Filter> filterDx_;
|
Ptr<cuda::Filter> filterDx_;
|
||||||
@ -196,7 +196,6 @@ namespace
|
|||||||
|
|
||||||
circlesAccumCenters_gpu(srcPoints, pointsCount, dx_, dy_, accum_, minRadius_, maxRadius_, idp);
|
circlesAccumCenters_gpu(srcPoints, pointsCount, dx_, dy_, accum_, minRadius_, maxRadius_, idp);
|
||||||
|
|
||||||
Mat tt; //CPU copy of accum_
|
|
||||||
accum_.download(tt);
|
accum_.download(tt);
|
||||||
|
|
||||||
int centersCount = buildCentersList_gpu(accum_, centers, votesThreshold_);
|
int centersCount = buildCentersList_gpu(accum_, centers, votesThreshold_);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user