I want to show a stack of dicom files. I already have the code that loads the images, but i get an warning saying
Warning: Image is too big to fit on screen; displaying at 67%
> In imuitools\private\initSize at 71
In imshow at 282
In montage at 147
In dicom at 11
If you know how to fix this please let me know.
Here is my code:
% Preallocate the 256-by-256-by-1-by-20 image array.
X = repmat(uint16(0), [256 256 1 20]);
% Read the series of images.
for p=1:20
filename = sprintf('brain_%03d.dcm', p);
X(:,:,1,p) = dicomread(filename);
end
% Display the image stack.
montage(X,[])