MATLAB: How to identify a particular shape at all degrees, while ignoring the rest

digital image processingimage acquisitionimage analysisimage processingimage segmentationMATLABshape recognition

Hello, I have an image of various lines and blobs, and I want my image to only show the lines. To accomplish this, I have utilized watershed, regionprops, ismember, and a few other methods in order to get to the image I am now. At this point, I can't reduce the area boundries, as I'll start losing lines before I lose the blobs, and solidity wouldn't accomplish anything as all of the shapes appear to have the same solidity (probably due to how the shapes were generated.) What options do I have left? Thanks in advance!

Best Answer

Try the ratio of the majoraxislength to minoraxisLength.