forked from cbecker/iiboost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
globaldefs.h
48 lines (40 loc) · 2.22 KB
/
globaldefs.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
//////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2013 Carlos Becker //
// Ecole Polytechnique Federale de Lausanne //
// Contact <carlos.becker@epfl.ch> for comments & bug reports //
// //
// This program is free software: you can redistribute it and/or modify //
// it under the terms of the version 3 of the GNU General Public License //
// as published by the Free Software Foundation. //
// //
// 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, see <http://www.gnu.org/licenses/>. //
//////////////////////////////////////////////////////////////////////////////////
#ifndef _GLOBAL_DEFS_H_
#define _GLOBAL_DEFS_H_
/** Important Types **/
// We use floats, but this will do well only for small ROIs
// Otherwise, switch to double
typedef float IntegralImagePixelType; // this can make a huge difference in mem usage
typedef unsigned char ImagePixelType;
typedef double AdaBoostErrorType;
// Ground Truth image pixel type
typedef unsigned char GTPixelType;
// used internally only
static const GTPixelType GTNegLabel = 0;
static const GTPixelType GTPosLabel = 1;
// supervoxel or voxel-based?
// So far, no supervoxel support available
#define USE_SUPERVOXELS 0
// mean-variance normalization per-'patch'
#define USE_MEANVAR_NORMALIZATION 0
#define MEANVAR_NORMALIZATION_CUBE_RADIUS 50 // cube placed at voxel of interest
#if USE_MEANVAR_NORMALIZATION
#pragma message "USING MEAN-VARIANCE NORMALIZATION"
#endif
#endif