$search
#include <float_image_utils.h>
Static Public Member Functions | |
static void | getColorForAngle (float value, unsigned char &r, unsigned char &g, unsigned char &b) |
static void | getColorForFloat (float value, unsigned char &r, unsigned char &g, unsigned char &b) |
static void | getColorForHalfAngle (float value, unsigned char &r, unsigned char &g, unsigned char &b) |
static unsigned char * | getVisualAngleImage (const float *angle_image, int width, int height) |
static unsigned char * | getVisualHalfAngleImage (const float *angle_image, int width, int height) |
static unsigned char * | getVisualImage (const float *floatImage, int width, int height, float minValue=-std::numeric_limits< float >::infinity(), float maxValue=std::numeric_limits< float >::infinity(), bool grayScale=false) |
Provide some gerneral functionalities regarding 2d float arrays, e.g., for visualization purposes
Definition at line 51 of file float_image_utils.h.
void pcl_visualization::FloatImageUtils::getColorForAngle | ( | float | value, | |
unsigned char & | r, | |||
unsigned char & | g, | |||
unsigned char & | b | |||
) | [static] |
Get RGB color values for a given float in [-PI, PI] or special cases like -INFINITY(light green), INFINITY(light blue), NAN(light red) The colors are black(-PI) -> blue(-PI/2) -> white(0) -> green(PI/2) -> black(PI) with accordant values in between
Definition at line 115 of file float_image_utils.cpp.
void pcl_visualization::FloatImageUtils::getColorForFloat | ( | float | value, | |
unsigned char & | r, | |||
unsigned char & | g, | |||
unsigned char & | b | |||
) | [static] |
Get RGB color values for a given float in [0, 1] or special cases like -INFINITY(light green), INFINITY(light blue), NAN(light red)
Definition at line 50 of file float_image_utils.cpp.
void pcl_visualization::FloatImageUtils::getColorForHalfAngle | ( | float | value, | |
unsigned char & | r, | |||
unsigned char & | g, | |||
unsigned char & | b | |||
) | [static] |
Get RGB color values for a given float in [0, PI] or special cases like -INFINITY(light green), INFINITY(light blue), NAN(light red) The colors are black(-PI/2) -> blue(-PI/4) -> white(0) -> green(PI/4) -> black(PI/2) with accordant values in between
Definition at line 156 of file float_image_utils.cpp.
unsigned char * pcl_visualization::FloatImageUtils::getVisualAngleImage | ( | const float * | angle_image, | |
int | width, | |||
int | height | |||
) | [static] |
Use getColorForAngle for all elements of the given arrays.
Definition at line 222 of file float_image_utils.cpp.
unsigned char * pcl_visualization::FloatImageUtils::getVisualHalfAngleImage | ( | const float * | angle_image, | |
int | width, | |||
int | height | |||
) | [static] |
Use getColorForHalfAngle for all elements of the given arrays.
Definition at line 241 of file float_image_utils.cpp.
unsigned char * pcl_visualization::FloatImageUtils::getVisualImage | ( | const float * | floatImage, | |
int | width, | |||
int | height, | |||
float | minValue = -std::numeric_limits<float>::infinity () , |
|||
float | maxValue = std::numeric_limits<float>::infinity () , |
|||
bool | grayScale = false | |||
) | [static] |
Use getColorForFloat for all elements of the given arrays, whereas the values are first normalized to [0,1], either using the given min/max values or based on the actual minimal and maximal values existing in the array. The output is a byte array of size 3*width*height containing the colors in RGB order. If grayScale is true, the outcome will still be an RGB image, but all colors apart for the special colors of non-finite numbers, will be gray values
Definition at line 164 of file float_image_utils.cpp.