www.gusucode.com > images 案例代码 matlab源码程序 > images/GaborFilterVizWavelengthAndOrientationExample.m
%% Construct Gabor Filter Array and Visualize Wavelength and Orientation % %% % Create array of Gabor filters. % Copyright 2015 The MathWorks, Inc. g = gabor([5 10],[0 90]); %% % Visualize the real part of the spatial convolution kernel of each Gabor % filter in the array. figure; subplot(2,2,1) for p = 1:length(g) subplot(2,2,p); imshow(real(g(p).SpatialKernel),[]); lambda = g(p).Wavelength; theta = g(p).Orientation; title(sprintf('Re[h(x,y)], \\lambda = %d, \\theta = %d',lambda,theta)); end