Hi all,
Please, could someone tell me if there is something special to do when using
a cmsHTRANSFORM with INTENT_RELATIVE_COLORIMETRIC ? The fact is chromatic
adaptation is not done properly with my transform and I would like to know
what I am doing wrong.
This is a Lab to n-color conversion process. The n-color profile is stored
in a file and is successfully loaded. Its illuminant is D65
cmsHPROFILE nColor = cmsOpenProfileFromFile( profile.c_str(), "r" );
The Lab profile is created with the following lcms function (dzfault
illuminant D50):
cmsHPROFILE labProfile2 = cmsCreateLab4Profile( NULL );
Then the transform declaration. In the example bellow, nColor is a 4-color
profile:
cmsHTRANSFORM transform = cmsCreateTransform( labProfile2, TYPE_Lab_DBL,
nColor, TYPE_CMYK_16, INTENT_RELATIVE_COLORIMETRIC, cmsFLAGS_HIGHRESPRECALC
);
The conversion function. B16NCLR is a cmsUint16Number array
cmsDoTransform( transform, &Lab, b16NCLR, 1 );
As the illuminants of the 2 profiles are different, a chromatic adaptation
is done. However when I check the results, it seems this adapation has been
done in the wrong direction (D65->D50 instead of D50->D65). Have you any
idea about the reason ?
Remi
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user