MATLAB Examples

function [ES, ED] = edgestrndir(Dfx,Dfy)
% function edgestrength computes the edgestrength derived from the 1D
% horizontal and vertical high pass filter output images.
% Input -
%     Dfx is the 1D horizontal high pass filtered output
%     Dfy is the 1D vertical high pass filtered output
%
%  Output
%     ES is the Edge Strength image
% Written by
% --------------------------------------------------
% Doctorand M.Sc.-Ing Divyesh Varade
% Editorial Board NERD, IIT Kanpur
% Indian Institute of Technology,
% Geoinformatics Division,
% Department of Civil Engineering
% Kanpur-208016
% --------------------------------------------------
ES = sqrt(double((Dfx.^2)+(Dfy.^2)));
ED = atan(double(Dfy./Dfx)/3.14);
figure
subplot(1,2,1), imshow(ES), title('Edge Strength Image')
subplot(1,2,2), imshow(ED), title('Edge Direction Image')
end
Error using edgestrndir (line 19)
Not enough input arguments.