ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 function IERGB2CIELAB = Wrong ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Jul 31 2011 :  04:37:22  Show Profile  Reply
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  Show Profile  Reply
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);

Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Aug 01 2011 :  06:39:29  Show Profile  Reply
O.K. thanks,
then I correct that in my source code until then.

Klaus
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Sep 02 2011 :  06:07:20  Show Profile  Reply
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
Go to Top of Page

fab

1310 Posts

Posted - Sep 05 2011 :  10:21:50  Show Profile  Reply
Hello,
in my tests IERGB2CIELAB(CreateRGB(255,255,255)) returns TCIELAB(255,0,0), which seems correct to me.
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Sep 12 2011 :  05:03:35  Show Profile  Reply
Yes I has tried it, so it is OK.
But in my application, it is wrong.
There, I must seek again.
Thanks.

Klaus
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: