-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhough.h
More file actions
53 lines (46 loc) · 1.5 KB
/
Copy pathhough.h
File metadata and controls
53 lines (46 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
* Copyright (C) 2016 Raphaël Poggi <poggi.raph@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef HOUGH_H
#define HOUGH_H
#include "img_utils.h"
extern int **hough;
extern int ***hough_circle;
struct hough_param {
int theta;
int rho;
int nrho;
int mag;
int resolution;
int thresh;
struct point *points;
int points_size;
};
struct hough_param_circle {
int a;
int b;
int radius;
int resolution;
int thresh;
struct point *points;
int points_size;
};
struct hough_param *find_line(unsigned char *img, int width, int height);
struct hough_param_circle *find_circle(unsigned char *img, int width, int height);
void draw_overlay(struct hough_param *hp, unsigned char *img, int width, int height);
void draw_overlay_circle(struct hough_param_circle *hp, unsigned char *img, int width, int height);
#endif /* HOUGH_H */