필터 지우기
필터 지우기

removing tags from breast thermal image

조회 수: 3 (최근 30일)
Bella
Bella 2018년 1월 14일
댓글: Image Analyst 2018년 1월 15일
need help to remove background and tags from breast thermal image, I have tried using threshold but it removed some important features I want to use later in classification of breast cancer.
this is the code I used in matlab
[fn,pth]=uigetfile('*.jpg')%%to open an image from any folder
filename=[pth fn]
a=imread(filename);
figure; imshow(a);
bb=rgb2gray(a);
figure;
imshow(bb);
bb = im2double(bb); %convert to double
thresh_level = graythresh(bb); %find best threshold level
c = bb> thresh_level;%do thresholding
figure; imshow(c)
d = bwareafilt(c,1);
figure;imshow(d)
e = im2double(d).*bb; %c is binary, so we need to convert it first
figure;imshow(e,[])

답변 (1개)

Image Analyst
Image Analyst 2018년 1월 14일
It's better to just export the original thermal image without the annotation in there at all, rather than to try to fix up an annotated image. Can you get the original image? I would think so.
  댓글 수: 2
Bella
Bella 2018년 1월 15일
unfortunately I can't. Because the database that contains these images was sent to me online and all the images have those tags
Image Analyst
Image Analyst 2018년 1월 15일
The images can't be reliably processed in those areas because the data is missing. The best you can do is to estimate what the data should be. It looks like the annotations are all in fixed places. The easiest thing you can do is to make a binary image mask from those known locations, then use regionfill() to smear in values from just outside the boundaries.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by