-
Notifications
You must be signed in to change notification settings - Fork 1
/
brain.h
executable file
·53 lines (38 loc) · 1.13 KB
/
brain.h
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
/* brain.h
* Nathan W Brei
* 6.087 Final Project: image2dxf
* 26 January 2010
*/
/* Headers for brain.c
*/
#include "cv.h"
#include "highgui.h"
#ifndef BRAIN_H_
#define BRAIN_H_
/* Global variables; actually defined in main */
extern int visualize;
extern int magic_number;
extern int invert;
extern int algorithm;
extern int val1;
extern int val2;
extern int val3;
extern int quality;
extern IplImage* target;
extern CvSeq* contour;
extern CvMemStorage* storage;
/* void run_automatic (void)
The non-interactive edge-detection procedure */
void run_automatic (void);
/* void run_manual (void) The interactive edge-detection
procedure. Without this, we basically have no hope of determining
sensible algorithm parameters. Given a collection of similar
images, we can manually find the proper parameters on a reference
image, and from there process the rest non-interactively.
This gets a little bit harder to read because it is event-driven.
Sorry about that.
*/
void run_manual (void);
/* image_from_file loads the user-specified image from file. */
void image_from_file (char* image_name);
#endif /* BRAIN_H_ */