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

 Accepted Answer

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.

More Answers (0)

Categories

Asked:

on 23 Jan 2025

Edited:

on 23 Jan 2025

Community Treasure Hunt

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

Start Hunting!