How do you get 3D gradient direction and magnitude ?
2 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
I know that we can get the magnitude and direction from 2D gradient ?
1) mag(Gx,Gy) = sqrt ( Gx^2 + Gy^2 )
2) angle(Gx, Gy) = tan^-1 (Gy/Gx)
What about in 3D?
1) mag(Gx,Gy,Gz) = sqrt ( Gx^2 + Gy^2 + Gz^2 )
2) angle(Gx,Gy,Gz) = ???
I seriously need your help. Many, many thanks, Gary
0 件のコメント
回答 (1 件)
Matt J
2013 年 11 月 16 日
I'd probably define direction this way
angle(Gx,Gy,Gz) = [Gx,Gy,Gz]/mag(Gx,Gy,Gz)
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Mathematics and Optimization についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!