OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
Contrast Preserving Decolorization

Useful links: More...

Collaboration diagram for Contrast Preserving Decolorization:

Functions

void cv::decolor (InputArray src, OutputArray grayscale, OutputArray color_boost)
 Transforms a color image to a grayscale image. More...
 

Detailed Description

Useful links:

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

Function Documentation

◆ decolor()

void cv::decolor ( InputArray  src,
OutputArray  grayscale,
OutputArray  color_boost 
)

#include <opencv2/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 [58] .

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.