I am trying to blur a scanned text document to such an extent that the text lines are blurred to black. I mean, the text is mixed with each other, and all I see is black lines.
I am new to MATLAB, and although I know the basics, I cannot properly lubricate the image. I read this: Gaussian Blurr and according to this, the blur is controlled / determined by the sigma function. But this is not how it works in the code I wrote.
When I tried to study Gaussian blur in Matlab, I came to find out that it was achieved using this function: fspecial('gaussian',hsize,sigma);
Thus, it is obvious that there are two variables hsize indicates the number of rows or columns in the function, and sigma indicates the standard deviation.
Can someone explain the meaning of hsize here and why does it have a much deeper influence on the result even more than sigma ?
Why, even if I increase sigma to a very high value, the blur does not work, but the image is very distorted, increasing hsize
here is my code:
img = imread('c:\new.jpg'); h = fspecial('gaussian',hsize,sigma); out = imfilter(img,h); imshow(out);
and the results are attached:
Why is it driven not only by sigma ? What role does hsize play? Why can't I blur this text and not distort the whole image?
thanks


