Radial gradient of grayscale image
3 ビュー (過去 30 日間)
古いコメントを表示
Hey guys, it is me again with my image problems. ;)
I have a grayscale image and I would like to calculate the radial gradient of this image so I can look for extremums in the gradient and detect some features.
Previously I did this in a linear manner, eg take the next and previous pixel, divide their difference by 7 and get the 7-pixel gradient, but now I am struggling to do something similar in a radial way, mostly because the distance (circle) and direction (radius vector).
Can someone help me to get past my starting difficulties? Any help is gratefully appreciated!
0 件のコメント
採用された回答
Image Analyst
2013 年 2 月 5 日
I don't know what radial gradient is. Have you seen imgradient()? Or you can get the average gradient in all 8 directions just by convolving with [-1 -1 -1;-1 8 -1;-1 -1 -1].
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!