Reply by Gullapalli jayaroop November 5, 20022002-11-05
Hello,
I have read a DICOM format image file as follows:

infoY0 = dicominfo('diffusioncalibration_2002103018424836_2_4.dcm');
ref_img = dicomread(infoY0);
figure(1), imshow(ref_img, [])
title('reference image')
axis on

I need to covert the DICOM file into a binary file, so i tried this:

level = graythresh(ref_img)
ref_binimg = im2bw(ref_img, level) But i dont see any conversion, the resultant ref_binimg is just an
empty file with all zeros.

Can anyone suggest me on doing this tast

Thank you,
Jayaroop