I am testing conversion from RGB to YCbCr in Python's
pillow imaging module (formerly
PIL), and am getting predictable results overall, except for green, as represented in the Cr channel component of the YCbCr version of image.
For blue, I get white (RGB (255,255,255); V in HSV of 100%) in the Cb channel, and black (RGB (0,0,0); V in HSV of 0%) for yellow in the same channel. In Cr, I get white for the red colour, but (RGB (21,21,21); V in HSV of 8%) for green. Shouldn't green be black in Cr?
I thought I would check here before claiming there is a bug in
pillow. Perhaps I'm missing something about YCbCr, and the green of it is not the same as the RGB green. But I don't think so, as blue, yellow and red do match RGB.