I have 83 ct dicom series image and I want to remove patient table from these image.for this purpose I write the following code in the MATLAB software:
a = dicomread('E:\dicom\44.dcm');
b=double(a);
sample=a(50:100,250:300);
background=mean(mean(sample));
for i=1:512;
for j=1:512;
if i>385;
b(i,j)=background;
end
end
end
image=dicomwrite(b,uint16(b),'44.dcm');
after I run this code patient table remove from my image but image contrast is unacceptable.
how to adjust image contrast with matlab?
please help me.
Any help would be much appreciated. Thanks.