2

why in the matlab function imgradient the angle computed as

 Gdir = atan2(-Gy,Gx)*180/pi; % Radians to degrees

and not

Gdir = atan2(Gy,Gx)*180/pi; % Radians to degrees

as I expected?

is it a mistake in matlab or something else?

4

0 回答 0