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

4 ビュー (過去 30 日間)
Meshooo
Meshooo 2015 年 4 月 16 日
回答済み: Image Analyst 2015 年 4 月 16 日
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

採用された回答

Image Analyst
Image Analyst 2015 年 4 月 16 日
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 件)

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by