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 中查找有关 DICOM Format 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!