How to remove text from an image?
Show older comments
I am working on medical images. In most of the image contain patient details. While segmenting those images these texts are also segmented along with the region of interest. I want to remove those text from images before segmentation.
Accepted Answer
More Answers (2)
divya d
on 4 Dec 2018
0 votes
Am an reserach scholar. i tried the above code to remove the unnecessary patient details from echo images. i attached the result. verify it and suggest some other code. plz repy.
1 Comment
Image Analyst
on 4 Dec 2018
Use imcrop().
Imran
on 10 Jan 2019
0 votes
I have tried your this code to my image named (Original) but it still leaves some unneceassary text. Output image named (Masked). Please give me code to remove it.
3 Comments
Image Analyst
on 10 Jan 2019
just ask your radiologist, or whoever is supplying you with images, to give you the original images. You don't want images that have been annotated, compressed to 8 bit for display, and windowed and leveled anyway. You always want the original images, and ESPECIALLY NOT JPG images. Otherwise, if you have just a few of them, paint them out in Photoshop.
Imran
on 10 Jan 2019
Actually I have shared you gray sclaed output images of Matlab. I have attached the actual RGB image. Can i remove more text as compared to image named Masked using Matlab???
Image Analyst
on 10 Jan 2019
Actually, my answer stays unchanged. This is not the original image. You want the original image, not one with annotations imprinted on it. See if you can get the original images. They might be in dicom format which is used a lot in the medical field.
Categories
Find more on Basic Display in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

