NEW VERSION now with option for split preview
Gmic -Contrast Swiss Mask by
PhotoComiX, on Flickr
A very simple filter with not too much options or controls
..but maybe the first complete digital application of Contrast Mask ,as was used in Darkroom
....weird that all other Contrast Mask filters are limited to only lower the contrast, should be obvious that the same principle used to locally lower the contrast , may be well used also to locally increase the contrast.
Obviously a Contrast Mask is a a very simple way to manipolate the contrast but Smay be very effective
As default works as a Contrast Mask:
if the original is
DSC00138-S.jpg by
{ pranav }, on Flickr
Then the result would be
Gmic -Contrast Swiss Mask by
PhotoComiX, on Flickr
But the same mask could be used to get the opposite effect
If you check the SKIP button ...then the effect will be the opposite of a traditional Contrast Mask
WHAT SKIP DOESORIGINALUntitled by
jared, on Flickr
Default -
NO "skip " option checked
Contrast Swiss Mask - NO skip by
PhotoComiX, on Flickr
SKIP enabledContrast Swiss Mask -Skip by
PhotoComiX, on Flickr
ORIGINALNuclear Winter in Chernobyl by
Stuck in Customs, on Flickr
SKIP enabled
Contrast Swiss Mask -Skip by
PhotoComiX, on Flickr
#########HERE#THE#FILTER###############################
#@gimp Contrast Swiss Mask : gimp_contrast_swm2 , gimp_contrast_swm2_preview(0)
#@gimp : sep = separator ()
#@gimp : Blur the mask = float(2,0.5,10)
#@gimp : sep = separator ()
#@gimp : note = note ("Contrast Mask need the negative of the mask")
#@gimp : SKIP to use the mask to boost = bool(false)
#@gimp : note = note ("Uncheck for Contrast Mask,Check for Contrast Boost")
#@gimp : sep = separator ()
#@gimp : note = note("Merge the Mask")
#@gimp : Intensity = float (1,0,1)
#@gimp : sep = separator ()
#@gimp : Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical")
#@gimp : sep = separator(), note = note("<small>Author : <i>PhotoComiX</i>. Last update : <i>2010/12/26</i>.</small>")
#@gimp : note = link("Filter explained here","http://www.gimpchat.com/viewtopic.php?f=9&t=864")
gimp_contrast_swm2 :
-repeat @# -l[$>] -split_opacity -l[0]
--luminance -to_rgb
-blur_xy[1] $1,$1
-if {$2==0} -negative[1] -elif {$2==1} -gimp_do_nothing -endif
-reverse[-2,-1] -gimp_compose_hardlight[-2,-1] $3
-endl -a c -endl -done
gimp_contrast_swm2_preview :
-gimp_split_preview "-gimp_contrast_swm2 ${1--2}",$-1
###########END#############
#################################################
Here the ControlsGMIC - Contrat Swiss Mask-updated by
PhotoComiX, on Flickr
The first slider control the blurring of the mask,
default is a good starting point you may raise for large or very large images
Note well the Skip option allow to use the mask for the opposite effect, see below
Last slider control the intensity of the Effect,
More exactly allow to fade the effect over the original
( with Intensity 0 would be no any change )
ORIGINALContrast swiss mask test - ORIGINAL by
PhotoComiX, on Flickr
"SKIP" box checked (boost, opposite effect )Contrast swiss mask test -boost by
PhotoComiX, on Flickr
THE DEAFULT (mask)Contrast swiss mask test - mask by
PhotoComiX, on Flickr
Normally the contrast mask is used to locally decrease contrast to recover details in overcontrasted zones
Here the details on the right side (inside the blue box and on that side of the wall ) are burned or washed away beyond hope, so the effect of the the default setting are mainly visible on the lef side were is more to recover
ORIGINALChristmas Beer by
thskyt, on Flickr
DEFAULTContrast swiss mask test - mask by
PhotoComiX, on Flickr
LAST CONTROL is for the type of preview, as default is normal but you may get a horizontal or verical split preview , showing the before after as here
Gmic -Contrast Swiss Mask by
PhotoComiX, on Flickr