division is a linear operation?
true becase (x + y)/z = x/z + y/z
Boundary Issues
full, same, valid
Boundary issues
methods:
clip filter(black):imfilter(f,g,0)
wrap around(f,g,’circular’)
copy edge(f,g,’replicate’)
reflect across edge(f,g,’symmetric’)
pkg load image; img = imread('fall-leaves.png'); imshow(img); filter_size = 21; filter_sigma = 3; filter = fspecial('gaussian', filter_size, filter_sigma); smoothed = imfilter(img, filter, 0);
The reflection method of handling boundary conditions in filtering is good because
the created imagery has the same statistic as the original image