labeling.h
Go to the documentation of this file.
00001 
00059 /*
00060  * labeling.h
00061  *
00062  *  Created on: 21.06.2012
00063  *      Author: josh
00064  */
00065 
00066 #ifndef LABELING_H_
00067 #define LABELING_H_
00068 
00069 // convert mark to "some" color
00070 template<typename Point>
00071 void SetLabeledPoint(Point &pt, const int mark)
00072 {
00073   srand(mark);
00074   int color = rand();
00075   pt.r= (color>>0)&0xff;
00076   pt.g= (color>>8)&0xff;
00077   pt.b=(color>>16)&0xff;
00078 }
00079 
00080 template<>
00081 void SetLabeledPoint<PointXYZLabel>(PointXYZLabel &pt, const int mark)
00082 {
00083 }
00084 
00085 template<>
00086 void SetLabeledPoint<PointXYZILabel>(PointXYZILabel &pt, const int mark)
00087 {
00088 }
00089 
00090 
00091 //TODO: alternatives
00092 
00093 #endif /* LABELING_H_ */


cob_3d_segmentation
Author(s): Georg Arbeiter
autogenerated on Wed Aug 26 2015 11:03:03