Hi Richard, I spent a couple of days thinking on that and here is an idea, but still I'm not completly sure it would work. For this example, just assume we want to check the AdobeRGB coverage of sRGB
- First create a proofing transform with gamut check. Input would be sRGB, output would be the null profile and proofing would be AdobeRGB. - Set gamut alarm to 0xffff. Only out of gamut colors would give something other than zero since you are using the null profile as proofer. - Then, slice sRGB in regular intevals. You can use cmsSliceSpaceFloat or cmsSliceSpace16. - Transform each one of those nodes across the proofing transform. - Count the nodes that gives you zero and divide by total node number. This would give a *coarse* estimation of coverage, and would be fast, but the accuracy would be less than optimal. What do you think? Regards Marti Richard Hughes <hughsi...@gmail.com> escribió: > Is there a good way to work out how well a given ICC file can display > certain colorspace colors using lcms2? > > We're imagining a UI where we can put a simple metric like: > > Coverage of sRGB: 95% > Coverage of AdobeRGB: 82% > > For the different ICC profiles the user has installed. ArgyllCMS has > "viewgam -i" which takes quite a long time to process, and I'm > wondering if there's a simpler way to calculate this to a lower > precision using lcms2. If we have to use viewgam we can encode the > value in the ICC dict metadata, but really I'd like to just generate > the value in the UI at display time. > > Thanks for any ideas. > > Richard. > > ------------------------------------------------------------------------------ > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > _______________________________________________ > Lcms-user mailing list > Lcms-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/lcms-user > ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ Lcms-user mailing list Lcms-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lcms-user