-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtdef.h
More file actions
59 lines (43 loc) · 1.84 KB
/
Copy pathtdef.h
File metadata and controls
59 lines (43 loc) · 1.84 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
54
55
56
57
58
59
/*******************************************************
Mean Shift Analysis Library
=============================================
The mean shift library is a collection of routines
that use the mean shift algorithm. Using this algorithm,
the necessary output will be generated needed
to analyze a given input set of data.
Type Defintions:
===============
This header file contains the type defintions and
enumerations shared among the various classes of the mean
shift library.
The theory is described in the papers:
D. Comaniciu, P. Meer: Mean Shift: A robust approach toward feature
space analysis.
C. Christoudias, B. Georgescu, P. Meer: Synergism in low level vision.
and they are is available at:
http://www.caip.rutgers.edu/riul/research/papers/
Implemented by Chris M. Christoudias, Bogdan Georgescu
********************************************************/
#ifndef TDEF_H
#define TDEF_H
/*/\/\/\/\/\/\/\/\/\/\/\*/
/* Define Enumerations */
/*\/\/\/\/\/\/\/\/\/\/\/*/
//Kernel
enum kernelType {Uniform, Gaussian, UserDefined};
// kd-Tree
enum childType {LEFT, RIGHT};
// Speed Up Level
enum SpeedUpLevel {
NO_SPEEDUP,
MED_SPEEDUP,
HIGH_SPEEDUP,
MULTITHREADED_SPEEDUP, // Multithreaded version of NO_SPEEDUP (results are strictly equal)
GPU_SPEEDUP, // OpenCL GPU version of NO_SPEEDUP (results are nearly equal to NO_SPEEDUP except minor results diffs due to float/double precision)
AUTO_SPEEDUP, // GPU + CPU version of NO_SPEEDUP (results are nearly equal to NO_SPEEDUP except minor results diffs due to float/double precision)
// workload distributed between all GPUs (using GPU_SPEEDUP) and CPU (using MULTITHREADED_SPEEDUP)
};
// Error Handler
enum ErrorLevel {EL_OKAY, EL_ERROR, EL_HALT};
enum ErrorType {NONFATAL, FATAL};
#endif