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 个)
另请参阅
类别
在 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!