上QQ阅读APP看书,第一时间看更新
How it works...
To change the color space of an image with OpenCV, you should use the cvtColor function. It takes the source image and the special value, which encodes the source and targets the color spaces. The return value of the function is the converted image. OpenCV supports over 200 conversion types. The results of the code execution should be as follows: