MATLAB: How to find an approximate intersection of two lines in a binary image coordinateshoughimage processingImage Processing Toolboximerodesobel I'd like to find the coordinates of the intersection of lines in a binary image. What's a good way to do this? Here's an image: http://imageshack.com/a/img673/4706/3sac1T.png Thanks Best Answer I guess I'd try thresholdingbinaryImage = grayImage < 128Then call bwmorph to skeletonizeskelImage = 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. Related SolutionsMATLAB: How to find fork points of a skeleton? By fork point, I mean, a skeleton point having more than two adjacent points. Please help. Have you tried branchpoints? http://www.mathworks.com/help/images/ref/bwmorph.html MATLAB: Suggest a program for finding the intersection point of two lines in a skeletonized image.The coordinates of the intersection points has to be returned. Try this:crossings = bwmorph(binaryImage, 'branchpoints'); Related QuestionHow to remove the black regions in the holes of the lettersHow to find end point of handwritten character
Best Answer