I need an algorithm to fill in the blank vertical path pixels.

1 回表示 (過去 30 日間)
Franco
Franco 2025 年 1 月 23 日
編集済み: Image Analyst 2025 年 1 月 23 日
I need an algorithm to fill in the blank vertical path pixels.

採用された回答

Image Analyst
Image Analyst 2025 年 1 月 23 日
編集済み: Image Analyst 2025 年 1 月 23 日
You need an edge linking program. You basically need to label the lines with 8-connected pixels to give a label/number for each isolated line. Then you need to find the end points of each line and find the closest pixel on a line that has a different label/number. Then you need to draw a line connecting them.
See if you can adapt my attached edge linking demo.

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by