In the image processing toolbox of MATLAB, the edge function calculates the threshold for detecting edges for any specified method automatically(unless we specify it manuall