RSS/Atom feed Twitter
Site is read-only, email is disabled

Gaussian Blur using only the selected area

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

3 of 3 messages available
Toggle history

Please log in to manage your subscriptions.

Gaussian Blur using only the selected area Toby Haynes 07 Aug 17:38
  Gaussian Blur using only the selected area GSR - FR 07 Aug 18:52
   Gaussian Blur using only the selected area Toby Haynes 07 Aug 19:10
Toby Haynes
2006-08-07 17:38:09 UTC (over 17 years ago)

Gaussian Blur using only the selected area

I've used the GIMP for several years and I'm trying to repeat a technique I'm sure I used to be able to do. Often in a photo, I want to select an area and gaussian blur it to reduce noise (for example select the sky and clean up the CCD noise).

Current versions of the GIMP (I'm using 2.2.11 from the Ubuntu 6.06 AMD64 repository) perform the gaussian blur on only the selected pixels but they pick up colour values from outside the selected area, causing bleed into the selection. I would like the gaussian blur to only use colours from inside the selection.

I do not want to use a more "automatic" technique like Selective Gaussian Blur - that is not the solution I need.

Just so there is no confusion, here's a quick way to see exactly what I mean.

Create a new image - 128x128 will be fine. Fill the background with Black (if it isn't already). Switch to Pencil (press N) and put a white blob on top of the black background.
Use the "Select Contiguous Pixels" (press Z) to select the white blob. Choose the Filters->Blur->Gaussian Blur plugin. Using a 15 pixel horizontal and vertical blur, blur the image.

You will see that the black background bleeds into the white blob inside the selection. What I would like to happen is that no visible change should occur in this example - the white selected blob is already a constant shade and should not show any change under a gaussian blur.

I've tried tricks like cutting out the selected area into a new layer and performing the blur on the new layer. That is no better. My searches seem to suggest that Photoshop can limit the blurring to the selected area's colours if the layer is locked (which is also pretty obscure).

The worst part is I'm sure that the gimp blur routines used to only take colour values from the selected area. Maybe I'm just going nuts...

Thanks, Toby Haynes

GSR - FR
2006-08-07 18:52:06 UTC (over 17 years ago)

Gaussian Blur using only the selected area

Hi,
thaynes@sympatico.ca (2006-08-07 at 1138.09 -0400):

I've tried tricks like cutting out the selected area into a new layer and performing the blur on the new layer. That is no better. My searches seem to suggest that Photoshop can limit the blurring to the selected area's colours if the layer is locked (which is also pretty obscure).

The approach based in transparency should work... or http://bugzilla.gnome.org/show_bug.cgi?id=70335 "family" (look at dependences, 72848 and 72849 are blur) is not fully fixed.

GSR

Toby Haynes
2006-08-07 19:10:57 UTC (over 17 years ago)

Gaussian Blur using only the selected area

GSR - FR wrote:

Hi,
thaynes@sympatico.ca (2006-08-07 at 1138.09 -0400):

I've tried tricks like cutting out the selected area into a new layer and performing the blur on the new layer. That is no better. My searches seem to suggest that Photoshop can limit the blurring to the selected area's colours if the layer is locked (which is also pretty obscure).

The approach based in transparency should work... or http://bugzilla.gnome.org/show_bug.cgi?id=70335 "family" (look at dependences, 72848 and 72849 are blur) is not fully fixed.

There still appear to be issues to be worked out (I've just tried 2.2.12 to see if it is any better) with the transparency approach. Even so, being able to limit the gaussian blur to only use colour values from the selected area would be extremely useful. In other words, rather than relying on the alpha value of the pixel to affect its weight in the gaussian blur, use the selection weight of the pixel.

Does such an option exist? Maybe it's worth trying to alter one of the existing gaussian blur plugins to behave like this?

Thanks, Toby Haynes