How to delete unwanted lines from Binaries Images using regionprops?
1 次查看(过去 30 天)
显示 更早的评论
Hi Everyone, I am new in image processing.
Let say I have this binarised image below.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/155641/image.png)
In this image, there are letter 'I', '8', '.' and some other lines.
In this stage I don't want to do any character recognition , I just want to delete those lines and keep 'I', '8', '.'
I dont want to use any morphological operations because some time lines will attach with the letters.
I then think about characteristic of the letters, and I use some properties from regionprops such as Area, Perimeters,...
In this regards, are there any characteristic from regionprops that we could use to calculate any rule to delete these lines so that I could keep only 'I', '8', and '.'?
or are there any other ways without using regionprops properties?
Thank
回答(1 个)
Image Analyst
2014-1-27
You can look at the area, perimeter, Euler number, etc. See my Image Segmentation Tutorial for how to filter blobs based on certain characteristics, like area: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862
But that image you attached is too low resolution for distinguish any of those characters. I can't even tell what's what. You'll need more resolution.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!