delete background x ray image
이전 댓글 표시
Hi, how can I delete the background of a dicom-image? By now I use this code:
level = graythresh(ImageLowNRUOTATA);
BW = im2bw(ImageLowNRUOTATA,level);
figure (3)
subplot(1,2,1); imshow(BW)
and it returns a binary image (black and white).
bw=uint16(BW);
ImageLowNRUOTATABINARY=uint16(ImageLowNRUOTATA);
C=imsubtract(ImageLowNRUOTATABINARY,bw);
I don't know how subtract the greyscale image (dicom) and the image that i found with the graythresh. Please help me.
답변 (1개)
Image Analyst
2016년 1월 18일
Don't use imsubtract, just set the values in the image to zero where your mask is true:
ImageLowNRUOTATABINARY(BW) = 0;
댓글 수: 2
Laura Fabbri
2016년 1월 19일
edgar avalos
2019년 5월 29일
try:
ImageLowNRUOTATABINARY(imcomplement(BW)) = 0;
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!