ITU T.42 JPEG/Fax profile
Here is a icc profile to be used for encoding/decoding ITU T.42 Fax JPEG. You need a CMM, this profile and another profile (like sRGB) for your working space.
For decoding (display) a ITU T.42 Fax JPEG
If you are using IJG library (wich I recommend), set the output space to YCbCr, this will prevent IJG code to do any conversion, and return "raw" data. For encoding (store) a ITU T.42 Fax JPEG
Again, if you are using IJG library, set YCbCr as input space, this will prevent any conversion done by the library.
Gamut clipping sample. This is the original sRGB image, the blue bottle has many parts out of T.42 gamut.
This is the remapped image, the blue bottle has now no parts out of gamut
How gamut clipping works. I'm using LCh (polar form of Lab) to do the clipping.
L is unchanged
and not used. The gamut boundaries are the black rectangle. Finally, I wish to thank John Barber for all support and ideas about the stuff, and his modifications to IJG code as well. |