It is currently Thu Apr 25, 2024 5:45 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: updated- Costrast Swiss Mask
PostPosted: Sun Dec 19, 2010 7:13 am  (#1) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
NEW VERSION now with option for split preview


Image
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

Image
DSC00138-S.jpg by { pranav }, on Flickr

Then the result would be

Image
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 DOES

ORIGINAL

Image
Untitled by jared, on Flickr

Default -NO "skip " option checked

Image
Contrast Swiss Mask - NO skip by PhotoComiX, on Flickr

SKIP enabled

Image
Contrast Swiss Mask -Skip by PhotoComiX, on Flickr

ORIGINAL

Image
Nuclear Winter in Chernobyl by Stuck in Customs, on Flickr

SKIP enabled

Image
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 Controls


Image
GMIC - 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 )


ORIGINAL


Image
Contrast swiss mask test - ORIGINAL by PhotoComiX, on Flickr

"SKIP" box checked (boost, opposite effect )

Image
Contrast swiss mask test -boost by PhotoComiX, on Flickr

THE DEAFULT (mask)

Image
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

ORIGINAL

Image
Christmas Beer by thskyt, on Flickr

DEFAULT

Image
Contrast 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

Image
Gmic -Contrast Swiss Mask by PhotoComiX, on Flickr

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Last edited by PhotoComix on Wed Jan 05, 2011 9:09 pm, edited 13 times in total.

Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: New For GMIC : Contrast Mask/Boost
PostPosted: Sun Dec 19, 2010 12:46 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Sep 24, 2010
Posts: 12518
Hey PC; haven't played with you Script yet, but I like to use Lumina Invert (a Script-fu I ran across a few years back) on a duplicate top layer and set that layer property to Overlay. Really oversaturates the colors as well as gives you the contrast mask effect. :)

_________________
Lyle

Psalm 109:8

Image


Top
 Post subject: Re: New For GMIC : Contrast Mask/Boost
PostPosted: Sun Dec 19, 2010 12:58 pm  (#3) 
Offline
Global Moderator
User avatar

Joined: Oct 06, 2010
Posts: 4045
This works splendidly, PC. Thanks!

_________________
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes


Top
 Post subject: Re: New For GMIC : Contrast Mask/Boost
PostPosted: Sun Dec 19, 2010 8:04 pm  (#4) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
lylejk wrote:
Hey PC; haven't played with you Script yet, but I like to use Lumina Invert (a Script-fu I ran across a few years back) on a duplicate top layer and set that layer property to Overlay. Really oversaturates the colors as well as gives you the contrast mask effect. :)


i think is the same idea

As default it works as you will expect from a contrast mask, but will do the opposite checking a box

Here i used on a 3900x2600 photo with default

ORIGINAL

Image
Hot Rod by dave_7, on Flickr

DEFAULT

Image
Contrast Mask/Boost -Default test by PhotoComiX, on Flickr

PS maybe i will add a option for "Dark Sharpening"

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: New For GMIC : Contrast Mask/Boost
PostPosted: Sun Dec 19, 2010 8:51 pm  (#5) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
New name
"Contrast Swiss Knife" ,now with :wh Dark Sharpener :wh included... :paint

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: New For GMIC : Contrast Mask/Boost
PostPosted: Mon Dec 20, 2010 6:56 am  (#6) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I like the name! :clap

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: New For GMIC : Contrast Mask/Boost
PostPosted: Mon Dec 20, 2010 7:07 am  (#7) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
PhotoComix wrote:
New name
"Contrast Swiss Knife" ,now with :wh Dark Sharpener :wh included... :paint
That's a bit ominous sounding. I love it! :clap

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: New For GMIC : Contrast Mask/Boost
PostPosted: Mon Dec 20, 2010 11:22 am  (#8) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
No there are 2 too good competitors as Curve and level for the Contrast Swiss Knife honorificence

Better :drum "Contrast Swiss Mask" :drum

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: New For GMIC : Contrast Mask/Boost
PostPosted: Mon Dec 20, 2010 1:18 pm  (#9) 
Offline
Former Member
User avatar

Joined: Nov 17, 2010
Posts: 618
Location: Rockford, IL
WOW this is very nice, can't wait to give it a try. Is this in the current version, or no, also when's the next release???


Top
 Post subject: Re: New For GMIC : Contrast Mask/Boost
PostPosted: Fri Dec 24, 2010 11:16 pm  (#10) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
New version on first message
Often are the simplest things to work better ,so instead than add more options i simplified, and fixed a bug

@mikethedj4

To install extra gmic scripts you may just create a file called .gmic in C: Documents and Settings/ yourname/ application data and paste there the script you wish to add

Even more simple in linux...just add the .gmic file in your home directory

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: New For GMIC : Contrast Mask/Boost
PostPosted: Fri Dec 24, 2010 11:42 pm  (#11) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6947
Location: Somewhere in GIMP
Oh, I've been waiting for it to show up in g'mic. Obviously I've been wrong.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: New For GMIC : Contrast Mask/Boost
PostPosted: Sat Dec 25, 2010 7:55 am  (#12) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
maybe in the next version
Personaly i am happy that was not yet included because of that bug solved only now.

And i must fix some details alsoin the others i did
(hem..were fixed but seems i deleted the correct version and uploaded a draft :gaah
they do work well except for a option that also add a unrequested extra layer...good thing is that it is hidden behind the correct layer)

I feel a bit as in front of a fork, i can not hope to do much more without learn some basics of programming and get much more confidence with command line.
On the other side my only interest in programming is to create a few filter and tool that don't exist yet or not as i wish ;
there are not so much left ... and what left ( a good Kaleidoscope filter , similar to the Medhi PS plugin) looks very difficult

well ...before Easter i want a Eggify filter, but as now is not on top of my priority

So as now i plan just to perfect what i did till now ( already 5 ,Graphic Boost 1 & 2, Kool Draft, Realistic Painter , and this one )

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: New For GMIC : Contrast Mask/Boost
PostPosted: Sat Dec 25, 2010 10:10 pm  (#13) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Have a look to the first message

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: GMIC : Contrast Swiss Mask UPDATE 1/1/2011
PostPosted: Sat Jan 01, 2011 8:45 pm  (#14) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
updated

see first message

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: GMIC : Contrast Swiss Mask UPDATE 1/1/2011
PostPosted: Sat Jan 01, 2011 10:49 pm  (#15) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
I added both to my .gmic file PC, these are splendid man! =)

Image

Thank you.

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: GMIC : Contrast Swiss Mask UPDATE 1/1/2011
PostPosted: Sat Jan 01, 2011 11:35 pm  (#16) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Glad you like Rod :yes

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: GMIC : Contrast Swiss Mask UPDATE 1/1/2011
PostPosted: Wed Jan 05, 2011 8:40 pm  (#17) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
NEW VERSION now with option for split preview as

Image
Gmic -Contrast Swiss Mask by PhotoComiX, on Flickr

As default works as a Contrast Mask:

if the original is

Image
DSC00138-S.jpg by { pranav }, on Flickr

Then the result would be

Image
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[b] SKIP DOES[/b]

ORIGINAL

Image
Untitled by jared, on Flickr

Default -NO "skip " option checked

Image
Contrast Swiss Mask - NO skip by PhotoComiX, on Flickr

SKIP enabled

Image
Contrast Swiss Mask -Skip by PhotoComiX, on Flickr

ORIGINAL

Image
Nuclear Winter in Chernobyl by Stuck in Customs, on Flickr

SKIP enabled

Image
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#######################

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: GMIC : Contrast Swiss Mask UPDATE 1/1/2011
PostPosted: Wed Jan 05, 2011 8:48 pm  (#18) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Oppss i messed up a bit with the image links, now is fixed

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
 Post subject: Re: updated- Costrast Swiss Mask
PostPosted: Wed Jan 05, 2011 9:30 pm  (#19) 
Offline
GimpChat Member
User avatar

Joined: May 16, 2010
Posts: 14709
Location: USA
Fantastic PC! I grabbed it up.
Did you get any sleep yet? =)

_________________
Image
Edmund Burke nailed it when he said, "The only thing necessary for the triumph of evil is for good men to do nothing."


Top
 Post subject: Re: updated- Costrast Swiss Mask
PostPosted: Wed Jan 05, 2011 10:19 pm  (#20) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Rod wrote:
Fantastic PC! I grabbed it up.
Did you get any sleep yet? =)


i stumble upon something i want add a option for "Synbiotic Merging" :geek
(I just inade up in my mind the the "Synbiotic Merging" you will not find on a wiki)


seems warking well manually :flirt

well different will be subtle but maybe cool compensate a bit possible colours shifts

NOW

Attachment:
swiss mask.jpg
swiss mask.jpg [ 367.51 KiB | Viewed 2492 times ]


Synbiotic Contrst Mask

Attachment:
sw.png
sw.png [ 1.2 MiB | Viewed 2492 times ]


Main differences in sky & the whitesh cloths

_________________
My 3D Gallery on Deviantart http://photocomix2.deviantart.com/
Main gallery http://www.flickriver.com/photos/photocomix-mandala/
Mandala and simmetry http://www.flickriver.com/photos/photocomix_mandala/

Image

Mrs Wilbress


Top
Post new topic Reply to topic  [ 31 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Fast Mask (Rel 2)

14

No new posts Help removing mask from face

2

No new posts Attachment(s) Yet another luminosity mask plug-in!

3

No new posts Create Layer Mask From

8

No new posts Attachment(s) Mask Over Photographers in Reflection?

5



* Login  



Powered by phpBB3 © phpBB Group