Meet Carl Gauss: The King of Blurring Images and the True Genius behind Photoshop

Meet Carl Gauss: The King of Blurring Images and the True Genius behind Photoshop

Even if you’ve never blurred an image in Photoshop in your life, you might be aware that usually the best way to do it is by using Gauss. But who is Mr. Gauss, why is he so good at blurring images, and why would image editing be completely different without him?

If, about ten years ago, you picked up a book entitled "Photoshop CS4: The Missing Manual" by Lesa Snider, you’d be forgiven for thinking that Carl Gauss was a friend of Thomas and John Knoll, the two software engineers who sat down to create the image editing software that has now had such a huge impact on society that the word "Photoshop" has become a verb:

Good old Carl. He was really great at blurring stuff.

Unfortunately, this is not true. Gauss, throughout his long life, did not blur anything — at least, not digitally. We can be confident of this because Gauss died in 1855.

The Greatest Mathematician

Carl Friedrich Gauss was one of the most remarkable minds to have graced our planet. Einstein, by his own admission, would have achieved very little without him, and yet despite Gauss’s huge contribution, some would argue that, thanks to his perfectionism, he also held back mathematical progress by about fifty years.

Gauss was born in Brunswick in 1777 in what is now Germany and showed incredible promise as a mathematician at a very early age. At school, his teacher once asked the class to add all the numbers from one to 100, and while his classmates worked furiously, Gauss delivered the answer to his teacher in a matter of minutes. He observed that 100 + 1 equals 101, as does 99 + 2, as does 98 + 3. With this logic, he realized that there are 50 pairs of numbers, each adding up to 101. This meant that to get the answer, he merely needed to multiply 101 by 50 to give the answer of 5,050. Gauss performed this mathematical feat at the age of seven.

Until his death in 1855, Gauss transformed mathematics, not simply by solving problems that had dated back to the Ancient Greeks, but by changing how we think about mathematics itself. Gauss effectively invented number theory, producing ideas about how math can work that seemed to come out of nowhere.

One of his most significant contributions was normal distribution, also called Gaussian or Laplace-Gauss distribution. Many of us will know it from the tiny bit of statistics we may have learned at school: the bell curve. This is the idea that if you collect data, such as the height of a population, and plot it on a graph, it often creates an even (i.e., "normal") distribution with the mean average in the middle:

Gauss’s idea might seem simple and fairly mundane, but it had significant implications, especially because data behaving in this manner can be found all around us. Not only is it useful for knowing how you fared compared to others when you took that IQ test, it’s also critical for machine learning, big data, and predicting behavior. It’s had such an impact on how we understand the world that the Germans put a picture of Gauss and his bell curve on the ten Deutsche Mark banknote in 1991:

So What Did Gauss Filter?

Nothing — certainly not digitally.

In relation to photography, the word “filter” has shifted slightly since the arrival of Instagram, but its use in Photoshop refers to the application of algorithms to alter individual pixels within an image, often using surrounding pixels as part of the calculations. The maths for how a Gaussian blur works is quite complex for anyone who doesn’t have a reasonable level of understanding (such as myself), especially as to begin with you will probably need to know what a kernel is and how a convolution works (yep, I’m lost). However, this video does a reasonable job of explaining:

If that’s still a bit too sophisticated (it certainly made my brain hurt), here’s my attempt at a summary using this image:

The incredible monument at Podgaric in Croatia. If you’d like to learn about the phenomenal structures scattered across the Balkans, head to blog.andyday.com.

If you were to apply a blurring filter without the Gaussian bits, you’d take a pixel, look at the pixels around it, calculate the average color between them, and make the pixel that color. In doing the same for all of the pixels in the image, you’d end up with an image that is one single block of color. Here's the image above with an Average Blur filter applied:

When using the "Average Blur" filter in Photoshop, some of the finer detail is lost, to say the least.

Not great.

If you throw in some Gaussian distribution to how you treat the color value of a pixel and its surrounding pixels, you can give it more or less weight in relation to how near and far those surrounding pixels are in terms of their color value. Now, instead of every pixel changing to the average color of all of the pixels, suddenly dramatic shifts in color — i.e., edges — are protected, to a degree. The more dramatic the edge, the greater the protection.

If you turn down the "radius" setting when applying the filter, it keeps the weighting very high (imagine a very narrow bell curve), and the effect is limited. If you turn up the radius, it keeps the weighting very low (imagine a very fat bell curve), and the effect is much more pronounced:

A 1920px image after a Gaussian blur filter with a radius of 3 has been applied.

The same image but with the filter applied with a radius of 50.

What's useful to photographers is that this type of blurring can be an option when trying to replicate bokeh, but it has other uses as well, such as softening the edges of layer masks to make transitions more subtle, or softening skin, a technique that's no longer as common as it was ten years ago.

Gauss and his math isn't only at work when creating blur, however; countless other effects use these principals, such as drop shadows, outer glows, noise reduction — and, if you can believe it, sharpening, which is achieved by "trapping blurs":

https://www.youtube.com/watch?v=gvgdzZceLv4

For reasons that are beyond my brain, Gaussian methods are comparatively efficient in the way that it can be used to transform pixel values. In short, if you've ever manipulated an image in Photoshop or Lightroom, it's likely that you will have used some of Gauss's math.

(I've struggled to find out when Gaussian Blur was first used as a means of manipulating images, or when this blur was first included in Photoshop. If you have any information, please let me know in the comments below.)

Gauss may have been dead for 165 years but, even though he didn't invent a means of blurring images, we have plenty that we should be grateful for. Feel free to express your appreciation for one of humanity's greatest minds in the comments below.

Andy Day's picture

Andy Day is a British photographer and writer living in France. He began photographing parkour in 2003 and has been doing weird things in the city and elsewhere ever since. He's addicted to climbing and owns a fairly useless dog. He has an MA in Sociology & Photography which often makes him ponder what all of this really means.

Log in or register to post comments
10 Comments

He also invented the original two element Gauss design for a telescope, which led to Bausch & Lomb making the double gauss, which led to designs from Zeiss, Speed Panchros, Ektars, Voigtlander Ultrons, early Leica Summicron, Schneider Xenon, and so on.

Dude basically kickstarted 35mm lens designs.

Wow. I need to write another article! 😁

Yeah, him and Paul Ruduloph (Protar, Tessar), Ludwig Bertele (Sonnar, Biogon), Otto Schott, Dennis Hobson (Cooke triplet, one of the other most monumental inventions of lens history), and Max Berek (Elmar, Summar, Summitar, many more) are the quinessential figures of optical design for 35mm photography.

And very early on before them, Joseph Petzel and John Waterhouse.

Also noteworthy are Gauss's advances in non- Euklidian geometry. Meaning geometry on curved surfaces. Might sound nerdy, but when it comes to determining distances and aereas on curfed surfaces like the earth, this stuff really comes in handy.

In fact, most Germans probably know him because of his geodetic measurement campaigns rather than for his contributions in number theory 😉 hell, in a way he even helped our first experiments with self-driving vehicles, as his mercator projections have been used in Germany for most official geodetic maps until very recently

Ute Barth's blurred images are much better.

Gaussian blur is actually a noise process, and the noise filter in PS is also a Gaussian process.

Guass sidel elimination is one of the best and few ways of solving PDEs. Every engineer owes a lot to this guy.

I had to google this. Wikipedia tells me "It was only mentioned in a private letter from Gauss to his student Gerling in 1823" so I'm guessing this is yet ANOTHER instance of Gauss not publishing a fairly major discovery because he thought it needed more work. 😂

By the way, using the Shape blur filter on a copy of your Podgaric image, consistently causes the latest 21.2.0 version of PS CC to crash on my Win 10 PC.