refactored gpu::GeneralizedHough

This commit is contained in:
Vladislav Vinogradov
2013-04-30 13:59:10 +04:00
parent 4087a45e73
commit ad4d6bed9d
5 changed files with 150 additions and 141 deletions

View File

@@ -11,7 +11,7 @@
using namespace std;
using namespace cv;
using namespace cv::gpu;
using cv::gpu::GpuMat;
static Mat loadImage(const string& name)
{
@@ -101,7 +101,7 @@ int main(int argc, const char* argv[])
GpuMat d_image(image);
GpuMat d_position;
Ptr<GeneralizedHough_GPU> d_hough = GeneralizedHough_GPU::create(method);
Ptr<gpu::GeneralizedHough> d_hough = gpu::GeneralizedHough::create(method);
d_hough->set("minDist", minDist);
d_hough->set("levels", levels);
d_hough->set("dp", dp);
@@ -134,7 +134,7 @@ int main(int argc, const char* argv[])
tm.start();
d_hough->detect(d_image, d_position);
d_hough->download(d_position, position);
d_hough->downloadResults(d_position, position);
tm.stop();
}