applycolormapcv
Converts an image to the specified color map.
Syntax
R = applycolormapcv(handle, colormap)
Inputs
- handle
- Handle of a single channel gray scale image.
- colormap
- Value of the color map. Valid values are:
- 0
- cv::COLORMAP_AUTUMN
- 1
- cv::COLORMAP_BONE
- 2
- cv::COLORMAP_JET
- 3
- cv::COLORMAP_WINTER
- 4
- cv::COLORMAP_RAINBOW
- 5
- cv::COLORMAP_OCEAN
- 6
- cv::COLORMAP_SUMMER
- 7
- cv::COLORMAP_SPRING
- 8
- cv::COLORMAP_COOL
- 9
- cv::COLORMAP_HSV
- 10
- cv::COLORMAP_PINK
- 11
- cv::COLORMAP_HOT
- 12
- cv::COLORMAP_PARULA
Outputs
- R
- Handle of the output image.
Example
Apply the specified color map:
handle = imreadcv('bird2.jpg', 0);
R = applycolormapcv(handle, 7);