Remove text from a complex image

4 ビュー (過去 30 日間)
James Ben
James Ben 2022 年 3 月 2 日
回答済み: Image Analyst 2022 年 3 月 3 日
Hi everybody! I've started to segment an image for an academic work, but I'm struggling in remove texts in the image. While segmenting those images these texts are also segmented along with the region of interest. I want to remove those text from images before to continue with others process.
  2 件のコメント
yanqi liu
yanqi liu 2022 年 3 月 3 日
yes,sir,may be upload image file here,and not use url link
James Ben
James Ben 2022 年 3 月 3 日
編集済み: James Ben 2022 年 3 月 3 日
The image was uploaded via an Hyper link in the description of the problem sir. But you can click here to have the access to the image file. I didn't upload the file directly with the problem's description because the chat box didn't support .tif files.
Thanks!

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2022 年 3 月 3 日
I'd to a closing or dilation with imclose() or imdilate() This will connect the letters and numbers together into a bigger blob. Then I'd to an opening or erosion to break the connections with the thin lines that run all over the place. Then I'd use bwareafilt() to extract out blobs of the size that the number/letter groups are. Then use that as a mask to erase them from the image. Here's a start
se = strel('disk', 4, 0);
mask = imclose(originalImage, se);
mask = imopen(mask, se);
originalImage(mask) = 0;
Adapt as needed.

その他の回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by