Remove small blobs and keep letters
이전 댓글 표시
I have a binary image after thresholding to filter out letters from the original image, as the attached. But many unwante small blobs are also retained. I tried bwareaopen, but it was hard to find a proper criterium of area to differentiate these small blobs from the letters. The goal is to fitlter out the text and remove them (both printed and handwritten text) from the image. Thanks.
댓글 수: 9
Walter Roberson
2023년 1월 11일
I wonder if measuring their eccentricities would help? Or their density?
Zoe
2023년 1월 11일
Walter Roberson
2023년 1월 11일
"Solidity" is a better property than where I said "density" (by which I meant something fairly similar but did not know quite how to implement it at the time.)
Image Analyst
2023년 1월 11일
Perhaps the letters are on a colored sticker or something. We don't know because you forgot to attach your original image. All you attached was your segmented image. Obviously your segmentation algorithm is not complete but we don't know how to improve or finish it because you forgot to attach the original image. It might be easier for us to start with the original image than try to repair your imperfect segmentation algorithm starting from the bad image.
Also say what you really want. Is it the letters? Or the blobs? What do you want to keep for further analysis, and what do you want to discard/ignore?
DGM
2023년 1월 11일
Are we talking about the printed text or the handwritten text?
If you're trying to process many varied images, it would help to have examples of more than one.
Zoe
2023년 1월 12일
Zoe
2023년 1월 12일
Zoe
2023년 1월 12일
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

