I am calling fspecial()
in MATLAB to create a Guassian blur of an image.
For example,
%Create Gaussian Filter
G = fspecial('gaussian', [5 5], 2);
% Blur Image
blurredImage = imfilter(nonBlurredImage,G,'same')
The parameter [5 5] is hsize which defines the extent to which the Gaussian filter is applied ... which according to user "Try Hard" ... "In the case of a gaussian filter, the intensity at each pixel around the central one is weighted according to a gaussian function prior to performing a box average over the region."
The parameter 2 is sigma ... with units of pixels.
Say the size of nonBlurredImage is 200x200. And that the side of each pixel represents a length of 0.25 mm. Then the image could resolve objects with a "resolution" of 1 line pair/mm without aliasing.
If I pass G = fspecial('gaussian', [5 5], 1) to the filter function, and then produce the blurred image. What would be the "resolution" of this image? How does it relate to hsize? If I instead used [10 10] or [1 1], how would that affect things?
Thanks!