How can i extract vertical lines from the print given?
1 次查看(过去 30 天)
显示 更早的评论
I want to extract only the verticle lines which might be present in the lip print given using only morphological operations. Is there any preprocessing required before doing so?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160594/image.jpeg)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/160595/image.jpeg)
0 个评论
回答(1 个)
Image Analyst
2017-2-11
You can use bwareaopen() to get rid of the large blobs. Then get rid of horizontal lines using
windowWidth = 5; % Whatever...some odd number.
verticalLines = imerode(binaryImage, ones(windowWidth, 1));
7 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!