35 #include <pcl/pcl_config.h> 37 #ifndef PCL_VISUALIZATION_FLOAT_IMAGE_UTILS_H_ 38 #define PCL_VISUALIZATION_FLOAT_IMAGE_UTILS_H_ 40 #include <pcl/pcl_macros.h> 48 namespace visualization
60 getColorForFloat (
float value,
unsigned char& r,
unsigned char& g,
unsigned char& b);
65 getColorForAngle (
float value,
unsigned char& r,
unsigned char& g,
unsigned char& b);
70 getColorForHalfAngle (
float value,
unsigned char& r,
unsigned char& g,
unsigned char& b);
78 getVisualImage (
const float* float_image,
int width,
int height,
float min_value=-std::numeric_limits<float>::infinity (),
float max_value=std::numeric_limits<float>::infinity (),
bool gray_scale=
false);
85 getVisualImage (
const unsigned short* float_image,
int width,
int height,
86 unsigned short min_value=0,
87 unsigned short max_value=std::numeric_limits<unsigned short>::max (),
88 bool gray_scale=
false);
92 getVisualAngleImage (
const float* angle_image,
int width,
int height);
96 getVisualHalfAngleImage (
const float* angle_image,
int width,
int height);
102 #endif //#ifndef PCL_VISUALIZATION_FLOAT_IMAGE_UTILS_H_ Provide some gerneral functionalities regarding 2d float arrays, e.g., for visualization purposes ...