www.gusucode.com > vision 源码程序 matlab案例代码 > vision/DefineAFilterToApproximateAGaussianExample.m

    %% Define a Filter to Approximate a Gaussian Second Order Partial Derivative in Y Direction

% Copyright 2015 The MathWorks, Inc.

ydH = integralKernel([1,1,5,9;1,4,5,3], [1, -3]);
%%
% You can also define this filter as |integralKernel|([1,1,5,3;1,4,5,3;1,7,5,3], [1, -2, 1]);|. This filter definition is less efficient because it requires three bounding boxes.
%%
% Visualize the filter.
ydH.Coefficients