![]() |
Visual Servoing Platform
version 3.5.1 under development (2023-05-31)
|
#include <visp3/core/vpColormap.h>
Public Member Functions | |
vpColormap (const vpColormapType &colormapType) | |
void | convert (const vpImage< unsigned char > &I, vpImage< vpRGBa > &Icolor, bool normalise=false) |
void | convert (const vpImage< vpRGBa > &I, vpImage< vpRGBa > &Icolor, bool normalise=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 visualisation for example.
Definition at line 60 of file vpColormap.h.
Definition at line 63 of file vpColormap.h.
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 visualisation for example.
[in] | colormapType | : Colormap family. |
Definition at line 50 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, and COLORMAP_WINTER.
Apply a colormap to a floating-point image:
I
[in] | I | : The float image on which the colormap will be apply. |
[out] | Icolor | : Colorised image. |
Definition at line 206 of file vpColormap.cpp.
References vpImage< Type >::getHeight(), vpImage< Type >::getMinMaxValue(), vpImage< Type >::getWidth(), and vpImage< Type >::resize().
void vpColormap::convert | ( | const vpImage< unsigned char > & | I, |
vpImage< vpRGBa > & | Icolor, | ||
bool | normalise = 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 | : Colorised image. |
[in] | normalise | : If true, normalisation into the [0 - 255] range is applied, otherwise the grayscale values are directly mapped. |
Definition at line 140 of file vpColormap.cpp.
References vpImage< Type >::getHeight(), vpImage< Type >::getMinMaxValue(), vpImage< Type >::getWidth(), and vpImage< Type >::resize().
Referenced by convert().
void vpColormap::convert | ( | const vpImage< vpRGBa > & | I, |
vpImage< vpRGBa > & | Icolor, | ||
bool | normalise = 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 | : Colorised image. |
[in] | normalise | : If true, normalisation into the [0 - 255] range is applied, otherwise the grayscale values are directly mapped. |
Definition at line 186 of file vpColormap.cpp.
References convert(), vpImage< Type >::getHeight(), and vpImage< Type >::getWidth().
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 | : Colorised image. |
Definition at line 240 of file vpColormap.cpp.
References convert(), vpImage< Type >::getHeight(), and vpImage< Type >::getWidth().