It is currently Thu Apr 25, 2024 11:59 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: selective gaussian blur REVERSED
PostPosted: Mon Jul 28, 2014 10:41 am  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
GIMP Version: 2.8.10
Operating System: Windows
GIMP Experience: Beginner Level

List any relevant plug-ins or scripts:
selective gaussian blur



maybe the request looks a bit crazy:
is there a way to apply a "reversed selected gaussian blur"?
the standard gaussian blur is such that the threshold is used to limit the blur action below the delta
for instance, using the defaults:
- it blurs with a radius of 5 wherever the delta of the values between two pixels is less than 50
could it be possible (or could be created a filter such that..) the opposite is performed? that is:
- it blurs with a radius of 5 wherever the delta of the values between two pixels is GREATER than 50
Sometimes could be useful...

_________________
"Where am I ?"


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: selective gaussian blur REVERSED
PostPosted: Mon Jul 28, 2014 11:21 am  (#2) 
Offline
Global Moderator
User avatar

Joined: Nov 16, 2011
Posts: 5128
Location: Metro Vancouver, BC
This article on -blur at G'MIC by Garry Osgood might not solve your problem but it's an interesting read on the subject.

_________________
Image
Gimp 2.8.18, Linux, median user
Gimp Chat Tutorials Index
Spirit Bear (Kermode)


Top
 Post subject: Re: selective gaussian blur REVERSED
PostPosted: Mon Jul 28, 2014 11:58 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Thanks, Odin
Yes, it's interesting, unfortunately not in the "reversed" use I'm looking for.
I consider G'MIC coders good candidates for creating a "reversed" use of the delta in performing a selective blur.
Maybe someone is willing to try it...
Spes ultima dea!

_________________
"Where am I ?"


Top
 Post subject: Re: selective gaussian blur REVERSED
PostPosted: Mon Jul 28, 2014 12:15 pm  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 03, 2011
Posts: 1656
Yes, it is possible with a G'MIC script, definitively.
Anyway, I'm not really sure it would be interesting, let me explain why.
A selective gaussian blur uses different amount of blur on different regions of the image, and the way it selects this amount of blur locally is basically by looking at the so-called gradient-norm of the image. This gradient norm tells locally if a pixel is on a region of high contrast/variation (probably an edge), or on a region with very few variations (mostly backgrounds or flat regions). And of course, the selective blur tries to blur less on the edges than on the flat regions.
Now, if you reverse this behavior :

1. You will blur more on the edges -> you will destroy them, like a regular blur does (with a constant amount of blur over the image).
2. You will blur less on flat regions -> this will be probably barely visible, because if the region is already perfectly flat, it won't change anything. On the contrary, if there is some 'noise' on these regions, they will be preserved.

In my opinion, this will look very close to what a "standard" gaussian blur (non-adaptive) does, except that you will keep some noise texture on flat region.
Even from an artistic point of view, I don't think this is of much interest :)


Top
 Post subject: Re: selective gaussian blur REVERSED
PostPosted: Mon Jul 28, 2014 12:38 pm  (#5) 
Offline
GimpChat Member
User avatar

Joined: Jan 20, 2013
Posts: 14816
Location: roma, italy
Thanks David for your reply.
You are right in 90% of the cases or even more.
But I have in mind situations in which:
1-the edges are too "hard" (lines having a width of 1-3 pixels too heavily contrasting with the rest of the image)
2-the non-edges areas have a nice (not "noise") structure to be preserved
In those cases, the standard non-selective gaussian blur will destroy the non-edges fine structure.
So, if the filter is writable easily, I will appreciate if implemented.
But only if it doesn't take too much of your precious time, always devoted to many interesting topics.
Thanks

_________________
"Where am I ?"


Top
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Gaussian blur not responding

7

No new posts Attachment(s) IN SEARCH OF GAUSSIAN BLUR PLUG-INS

2

No new posts edge detect using difference of gaussian (non GEGL)

0

No new posts Circular Motion Blur

2

No new posts GEGL filter to Extract, Recolor and Blur a Brightness Channel

1



* Login  



Powered by phpBB3 © phpBB Group