Basic Image AlgorithmS Library
2.8.0
|
Applies a colour map to an image. More...
#include <Utils/ColourMap.hh>
Public Member Functions | |
void | Apply (const Image< float > &imageIn, Image< unsigned char > &imageOut) |
Applies the current ColourMap to the given image and returns the result. More... | |
ColourMap (const ColourGradient< unsigned char > &mapGradient) | |
Constructor. More... | |
ColourMap (ColourGradient< unsigned char >::ColourGradientType gradientType=ColourGradient< unsigned char >::Gray) | |
Constructor. More... | |
Applies a colour map to an image.
Definition at line 43 of file ColourMap.hh.
|
inline |
Constructor.
Creates a ColourMap with the given gradient.
mapGradient | the gradient to use for colouring the image |
Definition at line 55 of file ColourMap.hh.
|
inline |
Constructor.
Creates a ColourMap with one of the preset gradients.
gradientType | the gradient preset type |
Definition at line 66 of file ColourMap.hh.
Applies the current ColourMap to the given image and returns the result.
A copy of the image is normalised to [0, 1] before the map is applied.
[in] | imageIn | input image to apply colour map on. must be single-channel |
[out] | imageOut | the coloured image |
Definition at line 31 of file ColourMap.cpp.
References BIAS::ImageBase::GetChannelCount(), BIAS::Image< StorageType >::GetImageData(), and BIAS::Image< StorageType >::Init().