can anyone give me code to read the dicom files from folder and
X = repmat(int16(0), [128 128 1 200]);dicomFiles = dir('E:\SHIVA BACKUP\THYROID\P1\newcodes\data1\13002\*.dcm');y=length(dicomFiles)% Read the series of images.
for p=1:y %filename = sprintf('IM_%01d.dcm', p);
X(:,:,1,p) = dicomread(dicomFiles);end% Display the image stack.
montage(X,[])
Best Answer