Re: [Lcms-user] Patches for floating point curve segments
An ICC-based CMM for color management
Brought to you by:
mm2
|
From: Marti M. <mar...@li...> - 2013-03-13 18:23:52
|
Thanks Paul, It is still hard to find any floating point profiles to check, so your patches are much appreciated. Specially the test code. Best regards Marti El 12/03/2013 15:27, Paul Miller escribió: > I've been testing some floating point monitor profiles, and I think I have found a couple of bugs in the floating point sampled curve support in the latest lcms > > cmsBuildTabulatedCurveFloat builds a curve which always evaluates to 0 for a value of 0. I have changed it to use a constant segment which matches the first sample for values <= 0, and also added a similar segment matching the last sample for values > 1.0 (the ICC spec says that the first and last segments in a segmented curve should be function segments). > > EvalSegmentedFN gives the wrong result when evaluating a sampled segment where x1 - x0 is not 1.0 > > I have also added tests to testcms.c to verify the changes. > > Suggested patches attached.... > > (apologies if this turns out to be a duplicate: I sent it to the list request address by mistake) > > - Paul > > > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > > > _______________________________________________ > Lcms-user mailing list > Lcm...@li... > https://lists.sourceforge.net/lists/listinfo/lcms-user |