forked from carlren/gSLICr
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gSLIC_defines.h
91 lines (72 loc) · 2.09 KB
/
gSLIC_defines.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#pragma once
#include "ORUtils/PlatformIndependence.h"
#include "ORUtils/Vector.h"
#include "ORUtils/Matrix.h"
#include "ORUtils/Image.h"
#include "ORUtils/MathUtils.h"
#include "ORUtils/MemoryBlock.h"
//------------------------------------------------------
//
// Compile time GPU Settings, don't touch it!
//
//------------------------------------------------------
#define BLOCK_DIM 16
namespace gSLIC
{
//------------------------------------------------------
//
// math defines
//
//------------------------------------------------------
typedef unsigned char uchar;
typedef unsigned short ushort;
typedef unsigned int uint;
typedef unsigned long ulong;
typedef class ORUtils::Matrix3<float> Matrix3f;
typedef class ORUtils::Matrix4<float> Matrix4f;
typedef class ORUtils::Vector2<short> Vector2s;
typedef class ORUtils::Vector2<int> Vector2i;
typedef class ORUtils::Vector2<float> Vector2f;
typedef class ORUtils::Vector2<double> Vector2d;
typedef class ORUtils::Vector3<short> Vector3s;
typedef class ORUtils::Vector3<double> Vector3d;
typedef class ORUtils::Vector3<int> Vector3i;
typedef class ORUtils::Vector3<uint> Vector3ui;
typedef class ORUtils::Vector3<uchar> Vector3u;
typedef class ORUtils::Vector3<float> Vector3f;
typedef class ORUtils::Vector4<float> Vector4f;
typedef class ORUtils::Vector4<int> Vector4i;
typedef class ORUtils::Vector4<short> Vector4s;
typedef class ORUtils::Vector4<uchar> Vector4u;
//------------------------------------------------------
//
// image defines
//
//------------------------------------------------------
typedef ORUtils::Image<Vector4f> Float4Image;
typedef ORUtils::Image<int> IntImage;
typedef ORUtils::Image<Vector4u> UChar4Image;
//------------------------------------------------------
//
// Other defines
//
//------------------------------------------------------
typedef enum
{
CIELAB = 0,
XYZ,
RGB
} COLOR_SPACE;
typedef enum
{
GIVEN_NUM = 0,
GIVEN_SIZE
} SEG_METHOD;
}
#ifndef DEBUGBREAK
#define DEBUGBREAK \
{ \
int ryifrklaeybfcklarybckyar=0; \
ryifrklaeybfcklarybckyar++; \
}
#endif