How to connect lines in a skeletonized image with arcs
Ältere Kommentare anzeigen
Hi,
I'm trying to find a way to have MATLAB connect the lines of the tripods in the first image (i.e., vertex_tripods.bmp) with arcs so that it looks something like the second image (i.e., vertex_tripods_connected.bmp). I would also like to have MATLAB calculate the angles of the tripods in the first image (with respect to the vertical axis). Thanks in advance for your help!
Antworten (2)
darova
am 12 Jun. 2019
0 Stimmen
Use bwmorph() to find branch points. I sorted them in counter clock-wise order:

Find distance and center between neighbor points:

Assume arc radius is 1000 pixels. Draw perpendicular vector (length L) from center of a segment - get arc center p0


Rotate radius vector using angle and rotation matrix to get points on arc

Steve
am 12 Jun. 2019
0 Stimmen
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!