I read now tons of different explanations of the gaussian blur and I am really confused.
I roughly understand how the gaussian blur works. http://en.wikipedia.org/wiki/Gaussian_blur
I understood that we choose 3*sigma as the maxium size for our mask because the values will get really small.
But my three questions are:
How do I create a gaussian mask with the sigma only?
If I understood it correctly, the mask gives me the weights, then I place the mask on the top left pixel. I multiply the weights for each value of the pixels in the mask. Then I move the mask to the next pixel. I do this for all pixels. Is this correct?
- I also know that 1D masks are faster. So I create a mask for x and a mask for y. Lets say my mask would look like this. (3x3)
1 2 1
2 4 2
1 2 1
How would my x and y mask look like?