[Help French] Problem of color...

Posted by Geopolis on Thu, 15 Feb 2007 00:04:26.

    Hi,

    At the first time, sorry for my english because I am french ;) I study at the University of Caen "image processing" and I have got a litlle project about "Calibration of Scanner". So I have got a charter of color from Kodak and I try to recover the colour of some "pastille (like stamps). And I have got a big problem in color .. and may be you will help me...
    I want to converse XYZ into RGB spaces but I have got only the matrix for an illuminant D65 and observer 2°... And me I want : illuminat D50 and 2°.. so I found this things on www.easyrgb.com : this code is neutral...
    //Observer 2° and illmuninant D50 :
    var_X = X / 100 //Where X = 0 ÷ 95.047
    var_Y = Y / 100 //Where Y = 0 ÷ 100.000
    var_Z = Z / 100 //Where Z = 0 ÷ 108.883

    var_R = var_X * 3.2406 + var_Y * -1.5372 + var_Z * -0.4986
    var_G = var_X * -0.9689 + var_Y * 1.8758 + var_Z * 0.0415
    var_B = var_X * 0.0557 + var_Y * -0.2040 + var_Z * 1.0570

    if ( var_R > 0.0031308 ) var_R = 1.055 * ( var_R ^ ( 1 / 2.4 ) ) - 0.055
    else var_R = 12.92 * var_R
    if ( var_G > 0.0031308 ) var_G = 1.055 * ( var_G ^ ( 1 / 2.4 ) ) - 0.055
    else var_G = 12.92 * var_G
    if ( var_B > 0.0031308 ) var_B = 1.055 * ( var_B ^ ( 1 / 2.4 ) ) - 0.055
    else var_B = 12.92 * var_B

    R = var_R * 255
    G = var_G * 255
    B = var_B * 255

    So can you help me to find the good matrix for a conversion in XYZ to RGB in D50 2°.... PLease...Thank you .. and sorry for my bad english


Related Topics:


Post a Response

Name:
Subject:
Message:


Back to Bulletin Board