choughcirclesdemo.h
Go to the documentation of this file.
1#pragma once
2
3#include <stdio.h>
4#include <stdlib.h>
5
6#include <iostream>
7
8#include <unistd.h>
9
10#include <opencv2/core/core.hpp>
11#include <opencv2/highgui/highgui.hpp>
12#include <opencv2/imgproc/imgproc.hpp>
13
14#include <Helpers/helpers.h>
15#include <Image/ByteImage.h>
16#include <Image/ImageProcessor.h>
17#include <Image/PrimitivesDrawer.h>
18
19// ****************************************************************************
20// Defines
21// ****************************************************************************
22
24{
25public:
26 CHoughCircles(int CannyLowThreshold = 50,
27 int CannyHighThreshold = 200,
28 int CirclesToExtract = 1,
29 int minRadius = 20,
30 int maxRadius = 100);
31 void HoughSaliency(CByteImage* origin,
32 CByteImage* saliencyImage,
33 int sampleWindowsize,
34 int width,
35 int height,
36 int windowCenterX,
37 int windowCenterY);
38 void openCVHoughSaliency(CByteImage* origin,
39 CByteImage* saliencyImage,
40 int sampleWindowsize,
41 int width,
42 int height,
43 int windowCenterX,
44 int windowCenterY);
45
46private:
47 // private attributes
48 int m_nCannyLowThreshold, m_nCannyHighThreshold;
49 int m_nMinRadius, m_nMaxRadius;
50 int m_nCirclesToExtract;
51};
void HoughSaliency(CByteImage *origin, CByteImage *saliencyImage, int sampleWindowsize, int width, int height, int windowCenterX, int windowCenterY)
void openCVHoughSaliency(CByteImage *origin, CByteImage *saliencyImage, int sampleWindowsize, int width, int height, int windowCenterX, int windowCenterY)
CHoughCircles(int CannyLowThreshold=50, int CannyHighThreshold=200, int CirclesToExtract=1, int minRadius=20, int maxRadius=100)