I have implemented Gaussian blur using matrices/kernels. I have 3x3, 5x5 and 7x7. However in Corel PhotoPaint it is possible to use Gaussian Blur with parameter ranging from 0.1 to 250.0. For value of 250 it makes the image totally blurred and works instantly. I tried applying my 7x7 blur 7 times but it takes a lot of time and the image is as blurred as Gaussian Blur of 4.0 from Corel.
How can I make my Gaussian blur parameterized like the one from Corel and blur images fast?
I am using a bit optimized C code from Rosetta and 7x7 matrix from Wikipedia
I also used this routine to create 51x51 kernel but the result is comparable with Corel's Gauss = 15.0 and takes about 30 seconds (which is 30 times slower than Corel).
N
) and the size of the square examined for determining the blurred pixel's new value (call thatM
). In your 3x3 blur, isN
=3 orM
=3? – angelatlarge