util.h
Go to the documentation of this file.
1 
21 #ifndef UTIL_H
22 #define UTIL_H
23 
24 #include <Eigen/Dense>
25 #include <vector>
26 #include <pcl/point_types.h>
27 #include <pcl/point_cloud.h>
28 
29 
31 
32 
33 
47 Eigen::Vector3d parseStringVector(std::string input_string, std::string delim);
48 
57 Eigen::Vector2i parseStringVector2i(std::string input_string, std::string delim);
58 
66 Eigen::Vector3d computeMedian(std::vector<Eigen::Vector3d> points);
67 
75 pcl::PointXYZ computeMedian(std::vector<pcl::PointXYZ> points);
76 
89 pcl::PointXYZ findPoint3D(pcl::PointCloud<pcl::PointXYZ>::Ptr cloud, pcl::PointXYZ current_point, int row, int column, int image_height, int image_width);
90 
94 typedef struct {
95  double r; // percent
96  double g; // percent
97  double b; // percent
98 } rgb;
99 
103 typedef struct {
104  double h; // angle in degrees
105  double s; // percent
106  double v; // percent
107 } hsv;
108 
109 
117 rgb hsv2rgb(hsv in);
118 
119 
120 }
121 
122 #endif
pcl::PointXYZ findPoint3D(pcl::PointCloud< pcl::PointXYZ >::Ptr cloud, pcl::PointXYZ current_point, int row, int column, int image_height, int image_width)
Finds the corresponding 3D point to the given 2D point.
Definition: util.cpp:104
Eigen::Vector3d parseStringVector(std::string input_string, std::string delim)
Parses the given string and returns the 3D-double-vector described by it.
Definition: util.cpp:37
Eigen::Vector3d computeMedian(std::vector< Eigen::Vector3d > points)
Computes the median of the given points.
Definition: util.cpp:67
rgb hsv2rgb(hsv in)
Converts the given hsv-color to rgb.
Definition: util.cpp:151
Eigen::Vector2i parseStringVector2i(std::string input_string, std::string delim)
Parses the given string and returns the 2D-int-vector described by it.
Definition: util.cpp:52


asr_descriptor_surface_based_recognition
Author(s): Allgeyer Tobias, Hutmacher Robin, Meißner Pascal
autogenerated on Mon Dec 16 2019 03:31:15