OpenCV453
関数

関数

CV_EXPORTS_W 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] . [詳解]
 

詳解

関数詳解

◆ decolor()

CV_EXPORTS_W 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] .

引数
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.