Hello everybody,
Would you guide me?
I am working with matlab to process my images and I have three questions.
- I am building a stack from my images but is it possible to add a legend so that I can understand the values that are shown by the image?
- Also, how can I rotate the image 90 degrees clockwise) as the imagesc(rot90(coronalimg,3)) and figure, img=imrotate(Img,(90)) gives errors.
- is it possible to have the correct proportion of width and depth smaller or bigger than the "truesize"?
here is my code:
source_dir=uigetdir([]);
fontSize=10
d=dir([source_dir,'\8-*.dcm']);
totalfile=length(d);
for i=1:totalfile
fname=['8-',num2str(i), '.dcm'];
indicom=dicomread(fullfile(source_dir, fname));
stack(:,:,i)=indicom;
end
figure,
coronalimg=squeeze(stack(:,256,:));
Img=imagesc((coronalimg))
truesize