Go to the documentation of this file.00001
00021 #ifndef UTIL_H
00022 #define UTIL_H
00023
00024 #include <Eigen/Dense>
00025 #include <vector>
00026 #include <pcl/point_types.h>
00027 #include <pcl/point_cloud.h>
00028
00029
00030 namespace descriptor_surface_based_recognition {
00031
00032
00033
00047 Eigen::Vector3d parseStringVector(std::string input_string, std::string delim);
00048
00057 Eigen::Vector2i parseStringVector2i(std::string input_string, std::string delim);
00058
00066 Eigen::Vector3d computeMedian(std::vector<Eigen::Vector3d> points);
00067
00075 pcl::PointXYZ computeMedian(std::vector<pcl::PointXYZ> points);
00076
00089 pcl::PointXYZ findPoint3D(pcl::PointCloud<pcl::PointXYZ>::Ptr cloud, pcl::PointXYZ current_point, int row, int column, int image_height, int image_width);
00090
00094 typedef struct {
00095 double r;
00096 double g;
00097 double b;
00098 } rgb;
00099
00103 typedef struct {
00104 double h;
00105 double s;
00106 double v;
00107 } hsv;
00108
00109
00117 rgb hsv2rgb(hsv in);
00118
00119
00120 }
00121
00122 #endif