[Lcms-user] LCMS2 problem with converting zero and near-zero channel values

2014-09-11 Thread Elle Stone
Transicc and also tificc both produce oddly wrong results when converting near-zero and zero RGB channel values from one RGB matrix profile to a second RGB matrix profile with a different TRC but the same colorants (as per converting a linear gamma sRGB image to regular sRGB). Below are some

Re: [Lcms-user] LCMS2 problem with converting zero and near-zero channel values

2014-09-11 Thread marti . maria
Hi, Could you please send me a private mail with those profiles? I will take a look. Regards Marti Quoting Elle Stone ellest...@ninedegreesbelow.com: Transicc and also tificc both produce oddly wrong results when converting near-zero and zero RGB channel values from one RGB matrix profile

Re: [Lcms-user] LCMS2 problem with converting zero and near-zero channel values

2014-09-11 Thread marti . maria
Hi Elle, Sorry, with the profiles you sent and transicc from lcms2-2.6, this does not happen. I got the expected values. Please check the version of lcms2 you are using. BTW, -c0 is not needed in lcms2 and may cause problems. This may be the source of the issue in versions previous to 2.6

Re: [Lcms-user] LCMS2 problem with converting zero and near-zero channel values

2014-09-11 Thread marti . maria
I didn't answer to the question on negative zero, so here are some clues. When using floating point, in general is a bad idea to check for equality. The internal representation of floating point numbers makes exact equality problematic. Just as an example 0.1 is periodic in binary