![]() |
Visual Servoing Platform version 3.7.0
|
#include <vpColormap.h>
Public Member Functions | |
| vpColormap (const vpColormapType &colormapType) | |
| void | convert (const vpImage< unsigned char > &I, vpImage< vpRGBa > &Icolor, bool normalize=false) |
| void | convert (const vpImage< vpRGBa > &I, vpImage< vpRGBa > &Icolor, bool normalize=false) |
| void | convert (const vpImage< float > &I, vpImage< vpRGBa > &Icolor) |
| void | convert (const vpImage< vpRGBf > &I, vpImage< vpRGBa > &Icolor) |
Creates a colormap class to be able to recolor an image with different grayscale values into some corresponding color values, for better visualization for example.
Definition at line 57 of file vpColormap.h.
Definition at line 60 of file vpColormap.h.
| BEGIN_VISP_NAMESPACE vpColormap::vpColormap | ( | const vpColormapType & | colormapType | ) |
Creates a colormap class to be able to recolor an image with different grayscale values into some corresponding color values, for better visualization for example.
| [in] | colormapType | : Colormap family. |
Definition at line 1020 of file vpColormap.cpp.
References COLORMAP_AUTUMN, COLORMAP_CIVIDIS, COLORMAP_COOL, COLORMAP_GIST_EARTH, COLORMAP_GNUPLOT, COLORMAP_GNUPLOT2, COLORMAP_HOT, COLORMAP_HSV, COLORMAP_INFERNO, COLORMAP_JET, COLORMAP_MAGMA, COLORMAP_OCEAN, COLORMAP_PLASMA, COLORMAP_RAINBOW, COLORMAP_SPRING, COLORMAP_SUMMER, COLORMAP_TERRAIN, COLORMAP_TURBO, COLORMAP_TWILIGHT, COLORMAP_TWILIGHT_SHIFTED, COLORMAP_VIRIDIS, COLORMAP_WINTER, and vpException::fatalError.
Apply a colormap to a floating-point image:
I | [in] | I | : The float image on which the colormap will be apply. |
| [out] | Icolor | : Colorized image. |
Definition at line 1178 of file vpColormap.cpp.
References vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), and vpImage< Type >::resize().
| void vpColormap::convert | ( | const vpImage< unsigned char > & | I, |
| vpImage< vpRGBa > & | Icolor, | ||
| bool | normalize = false ) |
Apply a colormap to a 8-bit grayscale image:
I | [in] | I | : The 8-bit grayscale image on which the colormap will be apply. |
| [out] | Icolor | : Colorized image. |
| [in] | normalize | : If true, normalization into the [0 - 255] range is applied, otherwise the grayscale values are directly mapped. |
Definition at line 1111 of file vpColormap.cpp.
References vpImage< Type >::getHeight(), vpImage< Type >::getWidth(), and vpImage< Type >::resize().
| void vpColormap::convert | ( | const vpImage< vpRGBa > & | I, |
| vpImage< vpRGBa > & | Icolor, | ||
| bool | normalize = false ) |
Apply a colormap to a 8-bit RGB image:
I | [in] | I | : The 8-bit grayscale image on which the colormap will be apply. |
| [out] | Icolor | : Colorized image. |
| [in] | normalize | : If true, normalization into the [0 - 255] range is applied, otherwise the grayscale values are directly mapped. |
Definition at line 1158 of file vpColormap.cpp.
References convert().
Apply a colormap to a 3 channels floating-point image:
I | [in] | I | : The float image on which the colormap will be apply. |
| [out] | Icolor | : Colorized image. |
Definition at line 1212 of file vpColormap.cpp.
References convert().