how to compute edge from gradient in an image?
조회 수: 3 (최근 30일)
이전 댓글 표시
gradient of and image is gradient(f)=[∂f/∂x, ∂f/∂y]=[fx,fy] θ=arctan (fy / fx) ,|| f||gives the magnitude. The angle for edges is θ=arctan (-fx/ fy) We know,edges are perpendicular to gradient ,but how to calculate edges with angle and magnitude in matlab.
please help........
댓글 수: 0
답변 (1개)
Image Analyst
2013년 5월 6일
Did you look in the help? Do you have the Image Processing Toolbox? Did you see imgradient() and imgradientxy()?
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!