필터 지우기
필터 지우기

Radial gradient of grayscale image

조회 수: 3 (최근 30일)
Christoph
Christoph 2013년 2월 5일
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!

채택된 답변

Image Analyst
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].
  댓글 수: 1
Christoph
Christoph 2013년 2월 5일
maybe that was a poor choice of words. All the objects I encounter in these images are circles or elliptical objects. So I need the gradient in form of 'going from the circle's center outwards'.
Thank you for your ideas, I will look into that immediately!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by