Hi Richard,

This is trivially done by using a transform from the RGB profile to XYZ, 
selecting adaptation state to 0 and then transforming (255, 255, 255) by 
the absolute colorimetric intent

Please note that this way you can safely ignore whatever the profile is 
V2 or V4, as it works in all cases.

Notes:
- use cmsSetAdaptationState(0) prior transform. This is very important 
in order to get the white point from CHAD
- use cmsFLAGS_NOOPTIMIZE as you only need one color. The transform 
overhead is minimal if done so.
- TYPE_RGB_DOUBLE and TYPE_XYZ_DOUBLE seems more adequate for data types.

Hope that works to you
Regards
Marti


El 22/11/2012 14:11, Richard Hughes escribió:
> gnome-color-manager displays the profile whitepoint as a temperature
> in the profile viewer.
>
> To do this is gets the MediaWhitePoint and uses cmsTempFromWhitePoint()
>
> This fails for v4 profiles that use a chad adaption as everything is
> D50. Is there an easy way of getting the profile whitepoint from lcms
> without creating a transform?
>
> Richard.
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> Lcms-user mailing list
> Lcms-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/lcms-user
>


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to