[][src]Function opencv::imgproc::apply_color_map

pub fn apply_color_map(
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    colormap: i32
) -> Result<()>

Applies a GNU Octave/MATLAB equivalent colormap on a given image.

Parameters

  • src: The source image, grayscale or colored of type CV_8UC1 or CV_8UC3.
  • dst: The result is the colormapped source image. Note: Mat::create is called on dst.
  • colormap: The colormap to apply, see #ColormapTypes