It is currently Mon Sep 14, 2026 5:41 am


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: swiss mask update
PostPosted: Wed Feb 23, 2011 6:30 pm  (#1) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
I am finishing a new version...well the first attempt lead to weird results (see viewtopic.php?f=11&t=1196 )

This instead works as supposed for a Contrast Mask, and has a added option to limit color shift

ORIGINAL (from Pranav )
Attachment:
1original.png
1original.png [ 1.02 MiB | Viewed 2399 times ]


Contrast mask
Attachment:
1default.png
1default.png [ 1.17 MiB | Viewed 2399 times ]


Contrast mask with "correct color shift"
Attachment:
1new.png
1new.png [ 1.06 MiB | Viewed 2399 times ]


"correct color shift" seems have a good effect on the color but for some reason also lower the intensity of the effect on the contrast...

well i think to know the reason but i didn't fix yet here what i get as now

It is compatible with the older version

########################################################
#################################################################################################################################à

#@gimp Contrast Swiss Mask 3 : gimp_contrast_swm3 , gimp_contrast_swm3(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 : Correct Color Shift = bool(true)
#@gimp : Correction Intensity = float(1,0,1)
#@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_swm3 :
-repeat @# -l[$>] -split_opacity -l[0]
--gimp_do_nothing
--luminance[-1] -to_rgb[-1]
-blur_xy[-1] $1,$1
-if {$2==0} -negative[-1] -elif {$2==1} -gimp_do_nothing -endif
-reverse[-1,-2] -gimp_compose_hardlight[-1,-2] $3
-if {$4==0} -keep[-1] -elif {$4==1} -gimp_compose_value[-1,-2] $5 -endif

-endl -a c -endl -done
###############################################################

_________________
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


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: swiss mask update
PostPosted: Sat Feb 26, 2011 1:01 pm  (#2) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
somebody tried ?
Suggestions ?

what the new option to preserve (more) the original colors is simple:
instead then just output the contrast masked image, it move it as a new layer, in Value mode on top of the original , so the new image will get the luminosity,and so the contrast of the masked image but hue and saturation of the original

Of course change in Luminosity do change the colors, but much less if original hue and saturation are preserved

_________________
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  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group