00001 #ifndef H_CPSTRUCTS 00002 #define H_CPSTRUCTS 00003 00004 #define PCLOUD_FULL 1 00005 #define PCLOUD_SKIM 2 00006 #define PCLOUD_NORM 3 00007 00008 // 6D Transformation 00009 typedef struct CPTransform { 00010 float rotation[9]; 00011 float translation[3]; 00012 }; 00013 00014 // Generally for image coordinates 00015 typedef struct CPPoint2D { 00016 float u; 00017 float v; 00018 }; 00019 00020 // 3D Position 00021 typedef struct CPPoint3D { 00022 float x; 00023 float y; 00024 float z; 00025 }; 00026 00027 // "Feature" usually found in an image, has a 2D and a 3D Position 00028 typedef struct CPFeature { 00029 CPPoint2D point2D; // 2D coordinate found in original image 00030 CPPoint3D point3D; // 3D coordinate 00031 }; 00032 00033 #endif