applyColorMap function

Mat applyColorMap(
  1. InputArray src,
  2. int colormap, {
  3. OutputArray? dst,
})

ApplyColorMap applies a GNU Octave/MATLAB equivalent colormap on a given image. colormap: ColormapTypes For further details, please see: https:///docs.opencv.org/master/d3/d50/group__imgproc__colormap.html#gadf478a5e5ff49d8aa24e726ea6f65d15

Implementation

Mat applyColorMap(InputArray src, int colormap, {OutputArray? dst}) {
  dst ??= Mat.empty();
  cvRun(() => cimgproc.cv_applyColorMap(src.ref, dst!.ref, colormap, ffi.nullptr));
  return dst;
}