* Use GMIC to apply a Difference of Gaussians on a copy of the source image,
to detect areas of high frequency detail like eyes (parameters: 0.05, 0.10, threshold 20, enable 'negative'.
* Apply a curve with a point at 93,33 and 192,192 to reduce the amount of smoothing high-detail pixels will get, even more.
* Edit->Copy
* Enter QMask mode (using keyboard shortcut or the button at bottom-left of your window) and Edit->Paste what you just copied.
* Anchor the pasted layer and exit QMask mode. Now, the low-detail pixels are most selected, and high-detail are least selected.
* Apply GMIC Anisotropic smoothing (amplitude 8, sharpness .4, gradsmooth 0, tensor smooth 0.50, iterations 2)
FWIW, I have now made this into a custom GMIC filter (thus, interactive preview etc.)
It still needs to support multi-layer application (for animations).
Anyway I'll give the current definition here, as it's short:
#@gimp Antialias: antialias, antialias
#@gimp : note = note("* finetuning")
#@gimp : Detail preservation = float(.30,0,1)
#@gimp : Smoothing = float(8,0.5,1024)
#@gimp : Sharpness = float(.4,0.001,1)
#@gimp : Iterations = int(2,1,32)
#@gimp : Gradient Smoothing* = float(0,0,10)
#@gimp : Tensor Smoothing* = float(0.5,0,10)
#@gimp : Fast Approximation* = bool(1)
#@gimp : DoG base* = float(0.05,0.001,100)
#@gimp : DoG distance* = float(0.05,0.001,100)
#@gimp : DoG threshold* = float(20,0.0001,49.999)
#
#
# XXX some way to adjust DoG parameters
antialias :
-repeat @# -l[@{>}]
--gimp_dog[-1] $8,{$8+$9},$10,1,0
# -2? -> -1?
-input [-2]x1
-repeat $4 -smooth[-1] $2,$3,1.0,$5,$6,.8,30,2,0,$7 -done
# # sanitize the DOG layer for masking use
-normalize[-2] 0,1
-apply_curve[-2] 1,{93/255},{.73-.73*$1},{192/255},{192/255}
-image[-3] [-1],0,0,0,0,1,[-2]
-remove[-2,-1]
-endlocal
-done
Paste that into the file ~/.gmic and restart GIMP in order to try it, if you are curious.
Make sure to leave that final blank line in.
EDIT:
I just fixed multi-layer application; here's an overly enthusiastically applied example based on a RagnarokOnline animation:
Original:
Smoothed:
(if this was an animation I was actually making, I'd draw some of the sharpness (eg sleeves) back in as needed)
EDIT2:
Here is a better example:
(zoom helps
(parameters: smooth = 2 sharp = 0 detail = .2 iterations = 1 gradsmooth = .7 tenssmooth = .5)
The current default settings are pretty good, but I'm sure there are better -- If you think you've found better defaults I'd like to hear about it
« Last Edit: November 16, 2010, 01:11:55 am by Ai »
Logged
If you insist on being pessimistic about your own abilities, consider also being pessimistic about the accuracy of that pessimistic judgement.