Hi,

>I'm student in image processing and I'm trying to do a little program for my
>own: the goal of the program is to have in output an image in which at pixel
>(x,y) we find the color corresponding to xyY coordinate. For this, I use the
>function "cmsxyY2XYZ()", then the tranform "cmsCreateTransform()" from XYZ
>profile to sRGB profile and finally, I save the picture in RGB and print it on
>screen. This works very good, no problem.
>The problem is that I would like the color out of gamut to be black. For this I
>use the functions "cmsCreateProofingTransform()" and "cmsSetAlarmCodes(0,0,0)"
>but then it doesn't work any more. Instead of having a triangle of color, I
>have a strange picture with a "Z" colored strip in the middle.


 I've tried that, and works fine to me. Check whatever your proofing transform is 
created like this:

 hXFORM = cmsCreateProofingTransform(hXYZProfile, TYPE_XYZ_16,
                                                                  hsRGB, TYPE_RGB_8,
                                                                 hsRGB,
                                                                
INTENT_RELATIVE_COLORIMETRIC,
                                                                
INTENT_RELATIVE_COLORIMETRIC,
                                                                
cmsFLAGS_GAMUTCHECK|cmsFLAGS_SOFTPROOFING);


Also, make sure you are using lcms-1.13, since anterior versions may have bugs on that.

Regards,
Marti Maria
The little cms project
http://www.littlecms.com
[EMAIL PROTECTED]

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 28, 2004 3:53 PM
Subject: function "cmsCreateProofingTransform()"


Hello,
I'm student in image processing and I'm trying to do a little program for my
own: the goal of the program is to have in output an image in which at pixel
(x,y) we find the color corresponding to xyY coordinate. For this, I use the
function "cmsxyY2XYZ()", then the tranform "cmsCreateTransform()" from XYZ
profile to sRGB profile and finally, I save the picture in RGB and print it on
screen. This works very good, no problem.
The problem is that I would like the color out of gamut to be black. For this I
use the functions "cmsCreateProofingTransform()" and "cmsSetAlarmCodes(0,0,0)"
but then it doesn't work any more. Instead of having a triangle of color, I
have a strange picture with a "Z" colored strip in the middle.
Could you help me please?
Thank you for your help,
Thomas Buca�oni

--------------------------------------------------------------------------------
Universit� de Bretagne sud                               http://www.univ-ubs.fr/



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Lcms-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to