Table of Contents

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

src InputArray

The source image, grayscale or colored of type CV_8UC1 or CV_8UC3.

dst OutputArray

The result is the colormapped source image. Note: Mat::create is called on dst.

colormap ColormapTypes

colormap 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

src InputArray

The source image, grayscale or colored of type CV_8UC1 or CV_8UC3.

dst OutputArray

The result is the colormapped source image. Note: Mat::create is called on dst.

userColor InputArray

The colormap to apply of type CV_8UC1 or CV_8UC3 and size 256