| 
        
          | 
              
                | Author |  Topic  |  |  
                | klausdoege
    
 
                Germany389 Posts
 | 
                    
                      |  Posted - Jul 31 2011 :  04:37:22     
 |  
                      | Hello, I believe, the function IERGB2CIELAB returns no correct results.
 The value RGB(255,255,255), returns LAB(249,0,0).
 LAB(255,0,0) is correct however.
 Actually also LAB(100,0,0 must it, is.
 Maybe, you can check that.
 
 Greetings
 Klaus
 
 Klaus
 |  |  
                | fab
     
 
                1310 Posts | 
                    
                      |  Posted - Aug 01 2011 :  00:19:16     
 |  
                      | Hello, you should get LAB(250,0,0) instead of LAB(249,0,0). Anyway it is still wrong.
 This problem will be fixed in next minor release, with following change in hyieutils.pas, function IERGB2CIELAB:
 
 instead of:
 
 result.L := trunc(L*2.50);
 
 write:
 
 result.L := trunc(L*2.55);
 
 
 |  
                      |  |  |  
                | klausdoege
    
 
                Germany389 Posts
 | 
                    
                      |  Posted - Aug 01 2011 :  06:39:29     
 |  
                      | O.K. thanks, then I correct that in my source code until then.
 
 Klaus
 |  
                      |  |  |  
                | klausdoege
    
 
                Germany389 Posts
 | 
                    
                      |  Posted - Sep 02 2011 :  06:07:20     
 |  
                      | Hello, I have enforced the alteration.
 the result looks already well.
 But RGB(255,255,255) is not Lab(255,0,0) but Lab(254,0,0)
 Another small miscalculation is there maybe?
 
 regards
 
 Klaus
 |  
                      |  |  |  
                | fab
     
 
                1310 Posts | 
                    
                      |  Posted - Sep 05 2011 :  10:21:50     
 |  
                      | Hello, in my tests IERGB2CIELAB(CreateRGB(255,255,255)) returns TCIELAB(255,0,0), which seems correct to me.
 |  
                      |  |  |  
                | klausdoege
    
 
                Germany389 Posts
 | 
                    
                      |  Posted - Sep 12 2011 :  05:03:35     
 |  
                      | Yes I has tried it, so it is OK. But in my application, it is wrong.
 There, I must seek again.
 Thanks.
 
 Klaus
 |  
                      |  |  |  
                |  |  Topic  |  |  |  |