Loading...
Searching...
No Matches

Enumerations

enum  cv::ColormapTypes {
  cv::COLORMAP_AUTUMN = 0 ,
  cv::COLORMAP_BONE = 1 ,
  cv::COLORMAP_JET = 2 ,
  cv::COLORMAP_WINTER = 3 ,
  cv::COLORMAP_RAINBOW = 4 ,
  cv::COLORMAP_OCEAN = 5 ,
  cv::COLORMAP_SUMMER = 6 ,
  cv::COLORMAP_SPRING = 7 ,
  cv::COLORMAP_COOL = 8 ,
  cv::COLORMAP_HSV = 9 ,
  cv::COLORMAP_PINK = 10 ,
  cv::COLORMAP_HOT = 11 ,
  cv::COLORMAP_PARULA = 12 ,
  cv::COLORMAP_MAGMA = 13 ,
  cv::COLORMAP_INFERNO = 14 ,
  cv::COLORMAP_PLASMA = 15 ,
  cv::COLORMAP_VIRIDIS = 16 ,
  cv::COLORMAP_CIVIDIS = 17 ,
  cv::COLORMAP_TWILIGHT = 18 ,
  cv::COLORMAP_TWILIGHT_SHIFTED = 19 ,
  cv::COLORMAP_TURBO = 20 ,
  cv::COLORMAP_DEEPGREEN = 21
}
 GNU Octave/MATLAB equivalent colormaps. More...
 

Functions

void cv::applyColorMap (InputArray src, OutputArray dst, InputArray userColor)
 Applies a user colormap on a given image.
 
void cv::applyColorMap (InputArray src, OutputArray dst, int colormap)
 Applies a GNU Octave/MATLAB equivalent colormap on a given image.
 

Detailed Description

Enumeration Type Documentation

◆ ColormapTypes

#include <opencv2/imgproc.hpp>

GNU Octave/MATLAB equivalent colormaps.

Enumerator
COLORMAP_AUTUMN 
autumn
COLORMAP_BONE 
bone
COLORMAP_JET 
jet
COLORMAP_WINTER 
winter
COLORMAP_RAINBOW 
rainbow
COLORMAP_OCEAN 
ocean
COLORMAP_SUMMER 
summer
COLORMAP_SPRING 
spring
COLORMAP_COOL 
cool
COLORMAP_HSV 
HSV
COLORMAP_PINK 
pink
COLORMAP_HOT 
hot
COLORMAP_PARULA 
parula
COLORMAP_MAGMA 
magma
COLORMAP_INFERNO 
inferno
COLORMAP_PLASMA 
plasma
COLORMAP_VIRIDIS 
viridis
COLORMAP_CIVIDIS 
cividis
COLORMAP_TWILIGHT 
twilight
COLORMAP_TWILIGHT_SHIFTED 
twilight shifted
COLORMAP_TURBO 
turbo
COLORMAP_DEEPGREEN 
deepgreen

Function Documentation

◆ applyColorMap() [1/2]

void cv::applyColorMap ( InputArray  src,
OutputArray  dst,
InputArray  userColor 
)

#include <opencv2/imgproc.hpp>

Applies a user colormap on a given image.

Parameters
srcThe source image, grayscale or colored of type CV_8UC1 or CV_8UC3.
dstThe result is the colormapped source image. Note: Mat::create is called on dst.
userColorThe colormap to apply of type CV_8UC1 or CV_8UC3 and size 256

◆ applyColorMap() [2/2]

void cv::applyColorMap ( InputArray  src,
OutputArray  dst,
int  colormap 
)

#include <opencv2/imgproc.hpp>

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

Parameters
srcThe source image, grayscale or colored of type CV_8UC1 or CV_8UC3.
dstThe result is the colormapped source image. Note: Mat::create is called on dst.
colormapThe colormap to apply, see ColormapTypes