I am reading a paper on SIFT by Lowe.
In it, gradient magnitudes and orientations are calculated using these formulae:
$$$$
I don't know why m(x,y) is calculated above. I heard that gradient magnitude is usually calculated like the following.
$$\sqrt{f_x ^2 + f_y^2} $$