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

Gaussian blur in GIMP compared to Photoshop

This discussion is connected to the gimp-developer-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.

6 of 6 messages available
Toggle history

Please log in to manage your subscriptions.

Gaussian blur in GIMP compared to Photoshop Jesper de Jong 20 Nov 11:53
  Gaussian blur in GIMP compared to Photoshop David Gowers 20 Nov 12:53
   Gaussian blur in GIMP compared to Photoshop Jesper de Jong 20 Nov 13:05
    Gaussian blur in GIMP compared to Photoshop Øyvind Kolås 20 Nov 14:25
     Gaussian blur in GIMP compared to Photoshop Jesper de Jong 20 Nov 14:55
Gaussian blur in GIMP compared to Photoshop William Skaggs 20 Nov 19:37
Jesper de Jong
2007-11-20 11:53:35 UTC (about 17 years ago)

Gaussian blur in GIMP compared to Photoshop

I noticed that with Gaussian blur, the Radius setting in GIMP means something different than in Photoshop CS3.

As a test, I made a black square on a white background and used Gaussian blur on it with Photoshop CS3 and the current development version of GIMP with radius 6.0 pixels. Photoshop blurs the image much more heavily than GIMP; to get the same effect with GIMP, I had to set the radius to approximately 19.0 pixels.

Is Gaussian blur not a standard algorithm that has a well-defined meaning for the radius? See for example http://en.wikipedia.org/wiki/Gaussian_blur

If it is, then which one is doing it wrong, CS3 or GIMP?

David Gowers
2007-11-20 12:53:17 UTC (about 17 years ago)

Gaussian blur in GIMP compared to Photoshop

Hi Jespar,
On Nov 20, 2007 9:23 PM, Jesper de Jong wrote:

I noticed that with Gaussian blur, the Radius setting in GIMP means something different than in Photoshop CS3.

As a test, I made a black square on a white background and used Gaussian blur on it with Photoshop CS3 and the current development version of GIMP with radius 6.0 pixels. Photoshop blurs the image much more heavily than GIMP; to get the same effect with GIMP, I had to set the radius to approximately 19.0 pixels.

Have you checked that the radius is in pixels in BOTH cases, and not in inches or points?

Is Gaussian blur not a standard algorithm that has a well-defined meaning for the radius? See for example http://en.wikipedia.org/wiki/Gaussian_blur

If it is, then which one is doing it wrong, CS3 or GIMP?

Jesper de Jong
2007-11-20 13:05:06 UTC (about 17 years ago)

Gaussian blur in GIMP compared to Photoshop

Hello David,

Both Photoshop CS3 and GIMP are set to pixels.

Jesper

2007/11/20, David Gowers :

Hi Jespar,
On Nov 20, 2007 9:23 PM, Jesper de Jong wrote:

I noticed that with Gaussian blur, the Radius setting in GIMP means something different than in Photoshop CS3.

As a test, I made a black square on a white background and used Gaussian blur on it with Photoshop CS3 and the current development version of

GIMP

with radius 6.0 pixels. Photoshop blurs the image much more heavily than GIMP; to get the same effect with GIMP, I had to set the radius to approximately 19.0 pixels.

Have you checked that the radius is in pixels in BOTH cases, and not in inches or points?

Is Gaussian blur not a standard algorithm that has a well-defined

meaning

for the radius? See for example

http://en.wikipedia.org/wiki/Gaussian_blur

If it is, then which one is doing it wrong, CS3 or GIMP?

Øyvind Kolås
2007-11-20 14:25:33 UTC (about 17 years ago)

Gaussian blur in GIMP compared to Photoshop

On Nov 20, 2007 12:05 PM, Jesper de Jong wrote:

Is Gaussian blur not a standard algorithm that has a well-defined

meaning

for the radius? See for example

http://en.wikipedia.org/wiki/Gaussian_blur

If it is, then which one is doing it wrong, CS3 or GIMP?

The amount of blurring achieved by a gaussian blur is specified by the standard deviation of the blurring kernel not the size of the blurring kernel. This probably means that GIMP and Photoshop use different ways of computing the standard deviation used from the user specified radius.

Using the size of the kernel (which probably is ~2.5x the standard deviation) might be leading to behavior similar to what GIMP is doing.

/Øyvind K.

Jesper de Jong
2007-11-20 14:55:50 UTC (about 17 years ago)

Gaussian blur in GIMP compared to Photoshop

I understand that the amount of blurring is determined by the standard deviation. So the conclusion is that there is no standard way to compute the standard deviation from the radius parameter that you specify for gaussian blur, and Photoshop and GIMP do this with different formulas - so it's not the case that either Photoshop or GIMP is wrong.

I looked in the sources and found the formula that GIMP uses:

plug-ins/common/gauss.c:932: vert = fabs (vert) + 1.0; plug-ins/common/gauss.c:933: std_dev = sqrt (-(vert * vert) / (2 * log (1.0/ 255.0)));

(and the same for horizontal about 120 lines below).

Thanks, Jesper

2007/11/20, Øyvind Kolås :

On Nov 20, 2007 12:05 PM, Jesper de Jong wrote:

Is Gaussian blur not a standard algorithm that has a well-defined

meaning

for the radius? See for example

http://en.wikipedia.org/wiki/Gaussian_blur

If it is, then which one is doing it wrong, CS3 or GIMP?

The amount of blurring achieved by a gaussian blur is specified by the standard deviation of the blurring kernel not the size of the blurring kernel. This probably means that GIMP and Photoshop use different ways of computing the standard deviation used from the user specified radius.

Using the size of the kernel (which probably is ~2.5x the standard deviation) might be leading to behavior similar to what GIMP is doing.

/Øyvind K. --
«The future is already here. It's just not very evenly distributed» -- William Gibson http://pippin.gimp.org/ http://ffii.org/

William Skaggs
2007-11-20 19:37:20 UTC (about 17 years ago)

Gaussian blur in GIMP compared to Photoshop

Jesper de Jong wrote:

Is Gaussian blur not a standard algorithm that has a well-defined meaning for the radius? See for example http://en.wikipedia.org/wiki/Gaussian_blur

The answer is no, there is not a single well-defined meaning. From a mathematician's point of view, the equation contains an "r" parameter which it is natural to call the radius, but if you use that value, it will look to a user like the blur extends considerably farther outward. GIMP instead tries to use a scale such that the blur appears to a user to extend for approximately the specified distance. This is a matter of judgement, but the usage is consistent and seems to come close to matching people's intuition, as far as I can tell.

-- Bill


______________ ______________ ______________ ______________ Sent via the CNPRC Email system at primate.ucdavis.edu