It is currently Sun Jul 21, 2024 3:26 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: @PhotoComix: progressive blurring
PostPosted: Thu Jan 17, 2013 11:28 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jul 17, 2012
Posts: 2770
PhotoComix wrote:
I am not too happy of that drop shadow script

but once i saw what the script does and how (just looking at the new layers it create, are self explicative ) i could see how improve (i duplicate the new layers, apply progressive amount of gaussian blur on the "shadow" , and re tune layers opacity )
im curious about this

what is the advantage of progressive blurring ?

i tried to blur text by 15 and then a copy of the same text by 5, 10 and 15
i can see see a small difference, but is very subtle

am i missing something ?
Attachment:
Blur.png
Blur.png [ 40.8 KiB | Viewed 1821 times ]


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: @PhotoComix: progressive blurring
PostPosted: Thu Jan 17, 2013 1:18 pm  (#2) 
Offline
Script Coder
User avatar

Joined: Oct 25, 2010
Posts: 4757
"Applying multiple, successive gaussian blurs to an image has the same effect as applying a single, larger gaussian blur, whose radius is the square root of the sum of the squares of the blur radii that were actually applied. "

So the 5/10/15 blur gives the same result as one single blur with radius:
[code]
Sqrt(5²+10²+15²)=Sqrt(25+100+225)=Sqrt(350)~=18.7
[code]

Reality check:
- take random picture (a car)
- duplicate
- blur one layer at 18.7, one at 5/10/15
- top layer in "Difference" mode
- New layer from visible and look at histogram:

The result:

- 98.3% of the pixels have a difference of 2 or less
- 99.6% of the pixels have a difference of 3 or less
- 99.9% of the pixels have a difference of 4 or less
- no pixel has a difference above 19.

Some randomness may have been added by the round-off errors... (which is confirmed by the moiré patterns you get when you threshold that "difference" picture).

_________________
Image


Top
 Post subject: Re: @PhotoComix: progressive blurring
PostPosted: Thu Jan 17, 2013 7:51 pm  (#3) 
Offline
GimpChat Member

Joined: Apr 12, 2010
Posts: 5870
Esper wrote:
PhotoComix wrote:
I am not too happy of that drop shadow script

but once i saw what the script does and how (just looking at the new layers it create, are self explicative ) i could see how improve (i duplicate the new layers, apply progressive amount of gaussian blur on the "shadow" , and re tune layers opacity )
im curious about this

what is the advantage of progressive blurring ?

i tried to blur text by 15 and then a copy of the same text by 5, 10 and 15
i can see see a small difference, but is very subtle

am i missing something ?
Attachment:
Blur.png


Yes to what kind of image to apply

It is for big png cut as example something as http://photocomix2.deviantart.com/favourites/#/d5e82jm or huge poser renders as in most of the pack here http://photocomix2.deviantart.com/favourites/48052473

In your case will not do any difference because there ,in your example will be only a effect on the outer edges , that will be identical of that of a single blur, this because your image has as inside basically a solid color that blurred or sharpened would look identical.

But if instead was applied as example a wrinkled skin (as on a old man face ) difference would be more evident ...same for dragon scales
(less for renders of girl with pesky skin but anyway also there a progressive lowering of the blur till 0 just inside the edges , and then a inversion of the effect , from blur to sharpen does a difference

again the supposed target are large png cut , as huge poser renders

let say for the edges pixels and the merging with the the BG the effect will be identical what change is that the blur fade progressively INSIDE the render and then will start the opposite effect.

Again the transition will be few pixels in images that will be scaled down after the "collage" but still make the render more pop out because the inside is sharpened and the very peryphery slightly blurred, without sharp transition that may look weird

ofnuts wrote:
"Applying multiple, successive gaussian blurs to an image has the same effect as applying a single, larger gaussian blur, whose radius is the square root of the sum of the squares of the blur radii that were actually applied. "

So the 5/10/15 blur gives the same result as one single blur with radius:
[code]
Sqrt(5²+10²+15²)=Sqrt(25+100+225)=Sqrt(350)~=18.7
[code]

Reality check:
- take random picture (a car)
- duplicate
- blur one layer at 18.7, one at 5/10/15
- top layer in "Difference" mode
- New layer from visible and look at histogram:

The result:

- 98.3% of the pixels have a difference of 2 or less
- 99.6% of the pixels have a difference of 3 or less
- 99.9% of the pixels have a difference of 4 or less
- no pixel has a difference above 19.

Some randomness may have been added by the round-off errors... (which is confirmed by the moiré patterns you get when you threshold that "difference" picture).


@ofnuti believe you overlook the same point :
there is not difference for the effect from the egdes to the outside but will be difference in the effect inside the render
this because the area to blur changes each time and at last step selection is changed again, enlarged again and then inverted

Again you are right, as Erisian for the effect from the render edges to the OUTSIDE but what change is the propagation INSIDE and each time the radius of the area edit differ of 1 or 2 pixels
1 quite blurred,
subtle blur,
no blur no change,
Dark halo sharpening

"Dark Sharpening" on faces human or animal will make usually pop out more lips and eyes, so the expression pop more up, important if will be a final downscaling

and sure will be possible optimize avoiding to blur twice overlapping area.. but sound complicated to me gaussian blur is quite fast so no sure if would be worth the effort

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

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts blurring a face on photo

1

No new posts Erase to background and blurring

3

No new posts PhotoComix and SaulGoode

13

No new posts Attachment(s) Wild Cartoonizer by PhotoComix

10

No new posts GMIC Wild cartoonizer Photocomix

7



* Login  



Powered by phpBB3 © phpBB Group