Remove small blobs and keep letters
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 11 de En. de 2023
I wonder if measuring their eccentricities would help? Or their density?
Zoe
el 11 de En. de 2023
Walter Roberson
el 11 de En. de 2023
"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
el 11 de En. de 2023
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
el 11 de En. de 2023
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
el 12 de En. de 2023
Zoe
el 12 de En. de 2023
Zoe
el 12 de En. de 2023
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Image Segmentation en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

