$darkmode
404 Not Found

404 Not Found


nginx
OpenCV 4.11.0
Open Source Computer Vision
BEGIN_CUSTOM_MATHJAX // END_CUSTOM_MATHJAX
Functions
Contrast Preserving Decolorization

Detailed Description

Useful links:

http://www.cse.cuhk.edu.hk/leojia/projects/color2gray/index.html

Functions

void cv::decolor (InputArray src, OutputArray grayscale, OutputArray color_boost)
 Transforms a color image to a grayscale image. It is a basic tool in digital printing, stylized black-and-white photograph rendering, and in many single channel image processing applications [CL12] . More...
 

Function Documentation

◆ decolor()

void cv::decolor ( InputArray  src,
OutputArray  grayscale,
OutputArray  color_boost 
)
Python:
cv.decolor(src[, grayscale[, color_boost]]) -> grayscale, color_boost

#include <photo.hpp>

Transforms a color image to a grayscale image. It is a basic tool in digital printing, stylized black-and-white photograph rendering, and in many single channel image processing applications [CL12] .

Parameters
srcInput 8-bit 3-channel image.
grayscaleOutput 8-bit 1-channel image.
color_boostOutput 8-bit 3-channel image.

This function is to be applied on color images.