2006-12-31 19:55:12
Could anyone tell me how the photoshop "smart blur" filter was implemented? What is the math behind it?
Thanks,
qq
Thanks,
#1
photoshop isn't opensource so none knows how things work inside it, anyway smartblur works like this:
to blur a pixel in regular blur you simply take the pixels surrounding it, you sum their values then you divide by the number of pixels summed up.
4N wrote:
photoshop isn't opensource so none knows how things work inside it, anyway smartblur works like this:
to blur a pixel in regular blur you simply take the pixels surrounding it, you sum their values then you divide by the number of pixels summed up.
I don't think it's that simple. Take an empty white document, zoom in 1600% (maximum zoom) en place one black pixel in there with the pen tool. Now use Gaussian Blur at 1 pixel. Your 'formula' suggests you would get an even colored 3 x 3 pixel grey square, but in reality you don't. You do get a 3 x 3 pixel quare, but with a dark grey centre pixel, four side pixels that are lighter grey and four corner pixels that are even lighter. That suggests a more complicated formula IMHO.
photoshop isn't opensource so none knows how things work inside it, anyway smartblur works like this:
to blur a pixel in regular blur you simply take the pixels surrounding it, you sum their values then you divide by the number of pixels summed up. To obtain the smart blur you use a threshold and sum only the pixels whose difference with the value of the pixel you're blurring are < (or <=) the given threshold, then you divide by the number of pixels summed.
And the name "Gaussian Blur" suggests what the formula is.LOL.
Johan W. Elzenga wrote:
4N wrote:
photoshop isn't opensource so none knows how things work inside it, anyway smartblur works like this:
to blur a pixel in regular blur you simply take the pixels surrounding it, you sum their values then you divide by the number of pixels summed up.
I don't think it's that simple. Take an empty white document, zoom in 1600% (maximum zoom) en place one black pixel in there with the pen tool. Now use Gaussian Blur at 1 pixel. Your 'formula' suggests you would get an even colored 3 x 3 pixel grey square, but in reality you don't. You do get a 3 x 3 pixel quare, but with a dark grey centre pixel, four side pixels that are lighter grey and four corner pixels that are even lighter. That suggests a more complicated formula IMHO.
And the name "Gaussian Blur" suggests what the formula is.
I don't think it's that simple. Take an empty white document, zoom in 1600% (maximum zoom) en place one black pixel in there with the pen tool. Now use Gaussian Blur at 1 pixel. Your 'formula' suggests you would get an even colored 3 x 3 pixel grey square, but in reality you don't. You do get a 3 x 3 pixel quare, but with a dark grey centre pixel, four side pixels that are lighter grey and four corner pixels that are even lighter. That suggests a more complicated formula IMHO.
Thanks for the information. How about the "Edge Only" in that filter? What does it do?
Could anyone tell me how the photoshop "smart blur" filter was implemented? What is the math behind it?
Thanks,