Hi,
Is there a way to plot a line from the edge detected using the "edge" function?
Thank you,

댓글 수: 1

Image Analyst
Image Analyst 2016년 3월 1일
Post a picture/diagram showing what you want. Mock something up in Photoshop if you have to. But we don't know what "a line from an edge" would be. Tangent to the edge? Perpendicular to it? At some arbitrary angle? How long? Until it hits the edge of the image in both directions? Or of some limited length?

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

답변 (2개)

Florian
Florian 2016년 3월 1일

1 개 추천

How about using bwboundaries on the edge function output? Check it out: http://ch.mathworks.com/help/images/ref/bwboundaries.html Regards, Florian
Ramses Herrera
Ramses Herrera 2016년 3월 1일

0 개 추천

Hi Florian,
I tried bwboundaries, but it doesn't really work out for me. I want to trace a line on the detected edges then get the distance from one edge to the other... pixel by pixel.
... Any thoughts?
Cheers, Ramsés

질문:

2016년 2월 29일

댓글:

2016년 3월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by