Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #include <pcl/pcl_config.h>
00036
00037 #ifndef PCL_VISUALIZATION_FLOAT_IMAGE_UTILS_H_
00038 #define PCL_VISUALIZATION_FLOAT_IMAGE_UTILS_H_
00039
00040 #include <pcl/pcl_macros.h>
00041
00042 #include <iostream>
00043 #include <cmath>
00044 #include <limits>
00045
00046 namespace pcl
00047 {
00048 namespace visualization
00049 {
00054 class PCL_EXPORTS FloatImageUtils
00055 {
00056 public:
00057
00059 static void
00060 getColorForFloat (float value, unsigned char& r, unsigned char& g, unsigned char& b);
00061
00064 static void
00065 getColorForAngle (float value, unsigned char& r, unsigned char& g, unsigned char& b);
00066
00069 static void
00070 getColorForHalfAngle (float value, unsigned char& r, unsigned char& g, unsigned char& b);
00071
00077 static unsigned char*
00078 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);
00079
00084 static unsigned char*
00085 getVisualImage (const unsigned short* float_image, int width, int height,
00086 unsigned short min_value=0,
00087 unsigned short max_value=std::numeric_limits<unsigned short>::max (),
00088 bool gray_scale=false);
00089
00091 static unsigned char*
00092 getVisualAngleImage (const float* angle_image, int width, int height);
00093
00095 static unsigned char*
00096 getVisualHalfAngleImage (const float* angle_image, int width, int height);
00097 };
00098
00099 }
00100 }
00101
00102 #endif //#ifndef PCL_VISUALIZATION_FLOAT_IMAGE_UTILS_H_
00103