Method ApplyColorMap
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ApplyColorMap(InputArray, OutputArray, ColormapTypes)
Applies a GNU Octave/MATLAB equivalent colormap on a given image.
public static void ApplyColorMap(InputArray src, OutputArray dst, ColormapTypes colormap)
Parameters
srcInputArrayThe source image, grayscale or colored of type CV_8UC1 or CV_8UC3.
dstOutputArrayThe result is the colormapped source image. Note: Mat::create is called on dst.
colormapColormapTypescolormap The colormap to apply
ApplyColorMap(InputArray, OutputArray, InputArray)
Applies a user colormap on a given image.
public static void ApplyColorMap(InputArray src, OutputArray dst, InputArray userColor)
Parameters
srcInputArrayThe source image, grayscale or colored of type CV_8UC1 or CV_8UC3.
dstOutputArrayThe result is the colormapped source image. Note: Mat::create is called on dst.
userColorInputArrayThe colormap to apply of type CV_8UC1 or CV_8UC3 and size 256