% visualize_filter.m

% Wireframe and surface plotting for visualization of the transfer
% functions of 2D filters

% Using wireframe
H = lpfilter_center('gaussian', 500, 500, 50);
mesh(H(1:10:500, 1:10:500));
axis([0 50 0 50 0 1])

% Convert the plot lines to black
colormap([0 0 0]);
axis off
grid off

% Display as a surface instead of a wireframe
colormap('default');
surf(H(1:10:500, 1:10:500));

colormap(gray)
grid off;
axis off;

