in the code imgradient3 and also in imgradient; Gazimuth = atan2(-Gy,Gx)*180/pi. My question is why this -Gy is used?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Syed reza
am 26 Feb. 2017
Beantwortet: Stefan Philippo Pszczolkowski Parraguez
am 2 Mai 2017
My question has two parts. 1. When imgradient3 calculates Gazimuth, it uses the following equation Gazimuth = atan2(-Gy,Gx)*180/pi. Why -Gy is used instead of Gy in the equation? 2. How to get back of Gx, Gy, Gz values from Gmag, Gazimuth and Gelevation? When I was trying to get Gx, Gy, Gz values using simple geometry, I am getting everything right except an opposite sign for Gy.
Thanks in advance.
0 Kommentare
Antworten (1)
Stefan Philippo Pszczolkowski Parraguez
am 2 Mai 2017
Use imgradientxyz instead if you are interested in Gx, Gy and Gz
0 Kommentare
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!