Bug 195561

Summary: Implement a selective saturation filter [patch]
Product: [Applications] digikam Reporter: Julien Narboux <Julien>
Component: Plugin-Editor-HSLAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: caulier.gilles
Priority: NOR    
Version: 1.0.0   
Target Milestone: ---   
Platform: unspecified   
OS: Unspecified   
Latest Commit: Version Fixed In: 1.7.0
Sentry Crash Report:
Attachments: A patch to add a slider called "selective saturation" in hsl plugin
First version of a patch to add a vibrance slider to HSL tool.

Description Julien Narboux 2009-06-07 14:28:05 UTC
Version:            (using KDE 4.1.4)

It would be nice to have a filter which apply saturation mostly on pixels which are less saturated.
It would be nice also to have this filter preserve skin tones.

Julien
Comment 1 Julien Narboux 2009-06-07 14:58:58 UTC
Created attachment 34345 [details]
A patch to add a slider called "selective saturation" in hsl plugin

This patch adds a slider in hsl tool. The new slider is supposed to add saturation mostly to pixels whose saturation is low.
This intent is to have something similar to the so called "vibrance" setting in some other software.

Preserving skin tones can not be done easily without changing deeply the current implementation of hsl, because the implementation is such that when changing saturation we do not have access to hue directly.

I did not commit this patch because I am not satisfied with the results. The algorithm needs a deeper study.


Julien
Comment 2 Julien Narboux 2009-06-07 15:01:06 UTC
Some screenshots:

http://www.flickr.com/photos/julien_narboux/sets/72157619379393970/

Comments welcome.

Julien
Comment 3 caulier.gilles 2009-10-13 22:22:11 UTC
Julien,

I have completely forget this patch.

Somebody can review it, and give us viewpoint, as photograph... 

Thanks in advance

Gilles
Comment 4 Julien Narboux 2009-10-13 22:46:36 UTC
Gilles,

I have to work on this. This patch only saturate more low saturated pixel. We need, in addition to saturate less colors whose hue component are similar to skin tone....

Julien
Comment 5 Julien Narboux 2010-03-27 10:59:25 UTC
Created attachment 42288 [details]
First version of a patch to add a vibrance slider to HSL tool.

This patch creates a new slider called vibrance in the HSL tool. This slider is the same as saturation except that it adds saturation only to a special range of colors whose hue is in a given range. The range is set to try to avoid saturating skin tones.

TODO: add interpolation: for the time begin saturation is added to a given range of hue, in the future saturation should be added more to some hue rand and less to some others but with smooth transition.
Comment 6 Julien Narboux 2010-03-29 08:05:53 UTC
SVN commit 1108522 by jnarboux:

First version of the vibrance slider in the HSL tool.

CCBUGS: 195561




 M  +31 -5     hslfilter.cpp  
 M  +5 -1      hslfilter.h  
 M  +28 -8     hslsettings.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1108522
Comment 7 caulier.gilles 2010-03-29 08:37:11 UTC
SVN commit 1108530 by cgilles:

HSL correction tool is also available in Batch Queue Manager. Don't forget to patch Vibrance management settings here, else, settings widget 
adjustment done by user will be ignored, and default value will be used instead.
CCBUGS: 195561


 M  +4 -0      hslcorrection.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1108530
Comment 8 Andi Clemens 2010-12-04 12:23:45 UTC
What's the status of this report? Has it been fixed?
Comment 9 caulier.gilles 2010-12-04 17:38:44 UTC
Well, if BQM HSL tool has the same settings than IE HSL tool, so yes, this file can be closed.

Gilles Caulier
Comment 10 Julien Narboux 2010-12-05 18:53:21 UTC
The settings are the same in BQM. I mark the bug as fixed.