37 #include <pcl/pcl_config.h>
44 namespace visualization
74 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);
82 unsigned short min_value=0,
83 unsigned short max_value=std::numeric_limits<unsigned short>::max (),
84 bool gray_scale=
false);
Provide some general functionalities regarding 2d float arrays, e.g., for visualization purposes
static void getColorForHalfAngle(float value, unsigned char &r, unsigned char &g, unsigned char &b)
Get RGB color values for a given float in [0, PI] or special cases like -INFINITY(light green),...
static void getColorForFloat(float value, unsigned char &r, unsigned char &g, unsigned char &b)
Get RGB color values for a given float in [0, 1] or special cases like -INFINITY(light green),...
static unsigned char * getVisualHalfAngleImage(const float *angle_image, int width, int height)
Use getColorForHalfAngle for all elements of the given arrays.
static void getColorForAngle(float value, unsigned char &r, unsigned char &g, unsigned char &b)
Get RGB color values for a given float in [-PI, PI] or special cases like -INFINITY(light green),...
static unsigned char * getVisualImage(const unsigned short *float_image, int width, int height, unsigned short min_value=0, unsigned short max_value=std::numeric_limits< unsigned short >::max(), bool gray_scale=false)
Use getColorForFloat for all elements of the given arrays, whereas the values are normalized to [0,...
static unsigned char * getVisualAngleImage(const float *angle_image, int width, int height)
Use getColorForAngle for all elements of the given arrays.
static unsigned char * 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)
Use getColorForFloat for all elements of the given arrays, whereas the values are first normalized to...
Defines all the PCL and non-PCL macros used.