2005.09.20 09:15 "[Tiff] Parse image into YCbCr data", by Katrina Maramba

2005.09.21 15:36 "RE: [Tiff] Parse image into YCbCr data", by Bob Friesenhahn

Is there an algorithm to convert from CMYK to RGB and vice versa?

CMY is the inverse of RGB so the algorithm is quite straightforward. Unfortunately, the straightforward algorithm is almost completely worthless because CMYK is used to describe the behavior of some batch of inks printed on some kind of paper using some sort of printer so there are a million varieties of "CMYK".

I recommend looking at using CMS color profiles and a library like LCMS (http://www.littlecms.com/) to convert between CMYK and RGB.

Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/