Bug 195561 - Implement a selective saturation filter [patch]
Summary: Implement a selective saturation filter [patch]
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Editor-HSL (show other bugs)
Version: 1.0.0
Platform: unspecified Unspecified
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-07 14:28 UTC by Julien Narboux
Modified: 2022-01-12 21:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 1.7.0


Attachments
A patch to add a slider called "selective saturation" in hsl plugin (9.01 KB, application/octet-stream)
2009-06-07 14:58 UTC, Julien Narboux
Details
First version of a patch to add a vibrance slider to HSL tool. (7.45 KB, patch)
2010-03-27 10:59 UTC, Julien Narboux
Details

Note You need to log in before you can comment on or make changes to this bug.
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.