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
 ImageEnProc.HSLvar faulty ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Dec 27 2016 :  08:48:26  Show Profile  Reply
Hello,
I believe the function ImageEnProc.HSLvar works with values> 0 faulty.
In the example Testbild1 = Original, Testbild2 = Correct work Saturation = 100 in Photoshop, Testbild3 = Erroneous with function ImageEnProc.HSLvar (0,100,0)
Can you please check this, and correct if necessary.



Klaus
www.klausdoege.de

klausdoege

Germany
389 Posts

Posted - Dec 31 2016 :  04:06:35  Show Profile  Reply
Hi Nigel,
i think the function RGB2HSL running not correct.
RGB2HSV it's better by my tests.
Regards
Klaus

Klaus
www.klausdoege.de
Go to Top of Page

xequte

38611 Posts

Posted - Jan 09 2017 :  15:54:34  Show Profile  Reply
Some combinations of HSL or HSV values create invalid (out of gamut) colors in the RGB color space. This is the case when you increase Saturation in gray scale pixels.

To confirm, try to setting Lightness=50 and increase Saturation here:
http://www.rapidtables.com/convert/color/hsl-to-rgb.htm

You will see RED colors. The same happens in ImageEn.

We have made some changes to improve the behaviot with gray scale pixels, which helps in our test image (including bild-test). It sets Sat=0 when source pixels are grayscale.

But it won't help when "out of gamut" colors are used (i.e. some combinations of offsets in HSLvar or HSVvar).


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Jan 13 2017 :  04:52:00  Show Profile  Reply
Hi Nigel,
Ok, is this included in the next version?
Or could I get a pre-release?
My problem are only the gray values.

Klaus
www.klausdoege.de
Go to Top of Page

xequte

38611 Posts

Posted - Jan 15 2017 :  18:08:15  Show Profile  Reply
Yes, email me.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: