Is there any difference in Gaussian functions in Matlab?

I am new to image processing, and in my experiment I have difficulties with the difference in Gaussian. I was given a different implementation, but I do not understand them and their parameters.

Here are my formulas

enter image description here

Do I have to implement this filtering myself or is there an existing function for this? Of course, with all the parameters that look like a link. I will need to play with the parameters and create different images.

+7
image-processing matlab filtering gaussian
source share
1 answer

You can Gaussian filter the image twice with two different std. deviation and just subtracting them will be the same as using a combined filter.

k = 10; sigma1 = 0.5; sigma2 = sigma1*k; hsize = [3,3]; h1 = fspecial('gaussian', hsize, sigma1); h2 = fspecial('gaussian', hsize, sigma2); gauss1 = imfilter(img,h1,'replicate'); gauss2 = imfilter(img,h2,'replicate'); dogImg = gauss1 - gauss2; 
+12
source share

All Articles