Histogram of Gradient Matrix

3 次查看(过去 30 天)
Mark Wood
Mark Wood 2021-6-3
Given a Matrix for example:
I need two Compuation Matrix such that
Gx =
Gy =
I am trying using gradient but not getting the exact results.
I also need to calculate the Magnitude of Gx and Gy such that my final matrix results as:
Resultant Matrix :
Also need to caluclate the Angle of Gx and Gy (arctan(Gy/Gx)) degree.
All element values should be rounded off in all the matrix.
I need a general code which do not depend(size of input matrix) on matrix rows and coloumns of the given input matrix.
Please help with MATLAB Code
  1 个评论
David Hill
David Hill 2021-6-3
What is the multivariate equation used to generation your given matrix? You can't generate the gradients without knowing the equation or x/y streams.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by