Please share a code to remove Text and Green Mask in the attached Medical image
이전 댓글 표시
Share a Matlab Code to remove the Text and the Green MAsk
댓글 수: 4
Walter Roberson
2022년 12월 17일
What should they be replaced with?
Walter Roberson
2022년 12월 18일
I had the idea of trying to use ocr to detect the text, as distinct from the bright highlights (which is not text shaped.) But it turns out that the lettering, especially in the green area, is not nearly as distinct from its surroundings as it first appears. It is a JPEG image, and JPEG blurs sharp edges, so the white lettering in the green section has a lot of green blended in to the edges, making it more difficult to detect characters.
DGM
2022년 12월 18일
If the text overlay is in a repeatable location, it might be possible to create a template mask such that operations can be restricted to the locations where characters may potentially appear.
If there is only one or two images that need to be processed, this might be simpler to mask manually.
John D'Errico
2023년 2월 1일
What would you replace the text with? The green overlay? Those parts of the image are irretrievably lost. So you cannot just remove them, and then have the image that was once there recovered.
Using some scheme to extrapolate what the lost regions MIGHT have been from the rest of the image would arguably be inappropriate, depending on the use for that image.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Convert Image Type에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!