Tip #16Recently I bumped into the (native) command
-normalize_local
So I'd like to report here my personal ideas on that one.
Just a little foreword: I looked at it ONLY for image enhancement, not for image transformation.
I say that because - going through the available filters in G'MIC - I found some uses of this command primarily in image transformation filters, like:
- sketching, painting, rodilius, etc.
all excellent creative filters which btw do not keep the "feeling" of the original image.
But playing with the command -normalize_local I saw it can be used to get more colour, more clarity.
If you have dull images, you can improve them by using that command.
Practically, it performs a stretching of the contrast, both in colours and in luminosity.
The main parameters to play with are:
1-amplitude
2-radius
3-neighbourhood smoothness
4-average smoothness
the other 3 parameters I left as defaulted (is-cut=1, min=0, max=255) during my tests
The first parameter seems to act as the strength of the command, the value is without limit but practically values over 6 have no effect, maybe because resulting high values are afterwards "cut".
So, the range I suggest is 1 to 6; default is 3.
The second parameter defines the area used as base for stretching the values of colour and luminosity.
Default is 16, to obtain still good but smoother stretching you can play up to 80;
values lower than 16 imo are good for artistic transformation, but not for simple photo enhancement (btw, in the various artistic filters which use -normalize_local, the second value is often 5 or 6).
The third and fourth parameters have as defaults: 4% and 2%.
Having to do with smoothness, I suggest to use the defaults or even to reduce them when dealing with landscapes, but increasing the values when dealing with figures, faces (to get a better skin); you can go up to 16% and 8%, respectively.
I attach here a folder with tests made on a landscape and on a figure.
The names specify the values used, for instance:
- figure_3-16-8-4 means that the 4 parameters used were: 3,16,8%,4%
- landscape_2-32 means that the first 2 parameters used were: 2,32
if you find orig means original image, dft means filter used with defaults
Attachment:
Figure.7z [608.02 KiB]
Downloaded 112 times
Attachment:
landscape.7z [1.25 MiB]
Downloaded 113 times