matlab格式详解:
1.函数模板
B=imfilter(A,H,options);
(a) -Boundary options
%
% X Input array values outside thebounds of the array
% are implicitly assumed tohave the value X. When no
% boundary option isspecified, IMFILTER uses X = 0.
%
% 'symmetric' Input array values outside the bounds of thearray
% are computed bymirror-reflecting the array across
% the array border.
%
% 'replicate' Input array values outside the bounds of thearray
% are assumed to equal thenearest array border
% value.(图片边界处像素的计算,采用将边界向外延长n=((size(H,1)+1)/2-1)个像素,延长的像素值为对应边界像素值。)
%
% 'circular' Input array values outside the bounds of thearray
% are computed by implicitlyassuming the input array
% is periodic.
(b) Output size options
% (Output size options for IMFILTER areanalogous to the SHAPE option
% in the functions CONV2 and FILTER2.)
%
% 'same' The output array is the same size as theinput
% array