How to code this avarage gradient equation in matlab?
4 次查看(过去 30 天)
显示 更早的评论
Average gradient (AG). The AG reflects the ability to express the details of an image and can be used to measure the
relative clarity of the image. AG is formulated as:
![1.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/251041/1.jpeg)
0 个评论
采纳的回答
KSSV
2019-11-28
Let F be your matrix.
[dfdx,dfdy] = gradient(f) ;
M = (dfdx.^2+dfdy.^2)/2 ;
AG = mean(mean(M)) ;
I gave answer quckly...cross check once.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Encryption / Cryptography 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!