How can I find an approximate intersection of two lines in a binary image?

Technical Source
1 min readMar 3, 2022

--

I’d like to find the coordinates of the intersection of lines in a binary image. What’s a good way to do this?

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

I guess I’d try thresholding

binaryImage = grayImage < 128

Then call bwmorph to skeletonize

skelImage = bwmorph(binaryImage, 'skel', inf);

Then call bwmorph again to find crossing points.

crossings = bwmorph(skelImage, 'branchpoints');

This is untested, so give it a shot and let me know how it goes. There is a possibility you could get spurious branchpoints depending on how ragged your thick lines are.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet