MATLAB Answers

0

How to find the middle point of an edge in binary image?

Meshooo 님이 질문을 제출함. 16 Apr 2015
최근 활동 Image Analyst 님이 답변함. 16 Apr 2015
Dear all, I have a binary image that contains an edge segment with 1 pixel width, see the attached image. My question is:
How to find the pixel located at the half (or quarter) length of this edge?
Meshoo

  댓글 수: 0

로그인 to comment.

답변 수: 1

Image Analyst 님의 답변 16 Apr 2015
 채택된 답변

Since it's reasonably straight, I'd say just running along the curve calculating the distance to each endpoint, and then picking the one where the difference between the two distances is minimum, should be pretty close or even exact.
However if the curve is all twisty and distorted, then you'll have to use John D'Errico's interparc http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A679

  댓글 수: 0

로그인 to comment.



Translated by