label_defines.h
Go to the documentation of this file.
00001 
00066 #ifndef COB_3D_MAPPING_COMMON_LABEL_DEFINES_H_
00067 #define COB_3D_MAPPING_COMMON_LABEL_DEFINES_H_
00068 
00069 #include <map>
00070 #include <boost/assign.hpp>
00071 
00072 // --- define colors ---
00073 #define LBL_NAN      0x999999
00074 #define LBL_BORDER   0xFF00FF // magenta
00075 #define LBL_PLANE    0x00CCFF // cyan
00076 #define LBL_EDGE     0x7F0000 // red
00077 #define LBL_EDGE_CVX 0xFF6600 // orange
00078 #define LBL_COR      0xFFCC00 // dark yellow
00079 #define LBL_COR_CVX  0xFF00FF // magenta
00080 #define LBL_CYL      0x007F00 // green
00081 #define LBL_CYL_CVX  0x00FF66 // light green
00082 #define LBL_SPH      0x00007F // blue
00083 #define LBL_SPH_CVX  0x9900FF // purple
00084 #define LBL_UNDEF    0x999999
00085 
00086 // --- define SVM labels ---
00087 #define SVM_PLANE 0
00088 #define SVM_EDGE  1
00089 #define SVM_COR   2
00090 #define SVM_SPH   3
00091 #define SVM_CYL   4
00092 
00093 #define SVM_EDGE_CVX 1
00094 #define SVM_SPH_CVX  2
00095 #define SVM_CYL_CVX  3
00096 
00097 #define SVM_EDGE_CAV 4
00098 #define SVM_SPH_CAV  5
00099 #define SVM_CYL_CAV  6
00100 
00101 #define SVM_COR_CVX  7
00102 #define SVM_COR_CAV  8
00103 
00104 // --- define integer labels only for feature evaluation ---
00105 #define EVAL_PLANE 0
00106 #define EVAL_EDGE  1
00107 #define EVAL_SPH   2
00108 #define EVAL_CYL   3
00109 #define EVAL_COR   4
00110 #define EVAL_EDGECORNER 5
00111 #define EVAL_CURVED 6
00112 
00113 // --- define integer labels for classification ---
00114 #define I_UNDEF  0
00115 #define I_NAN    1
00116 #define I_BORDER 2
00117 #define I_EDGE   3
00118 #define I_PLANE  4
00119 #define I_CYL    5
00120 #define I_SPHERE 6
00121 #define I_CORNER 7
00122 #define NUM_LABELS 8
00123 
00124 
00125 namespace LabelColorMap
00126 {
00127 
00128   const std::map<int,int> m = boost::assign::map_list_of
00129     ( I_UNDEF, LBL_UNDEF )
00130     ( I_NAN, LBL_NAN )
00131     ( I_BORDER, LBL_BORDER )
00132     ( I_EDGE, LBL_EDGE )
00133     ( I_PLANE, LBL_PLANE )
00134     ( I_CYL, LBL_CYL )
00135     ( I_SPHERE, LBL_SPH )
00136     ( I_CORNER, LBL_COR )
00137     ;
00138 
00139 }
00140 
00141 #endif


cob_3d_mapping_common
Author(s): Georg Arbeiter
autogenerated on Wed Aug 26 2015 11:02:19