apply equations to all of the dicom images in a file
    10 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Ahmad Alenezi
 am 22 Jul. 2019
  
    
    
    
    
    Beantwortet: awezmm
      
 am 25 Jul. 2019
            Hi there 
I made a code to calculate a parameter in heart out from a set of images (scan). Each scan contians 16 frames. I have 100 of these scans. I have to creat a manual region of interest (roi) for each scan . I would like the code to read each dicome scan in the file, allow me to draw roi  and then apply my equation to each scan seperatly. I also want to view the final results. Briefly, i would like MATLAB to apply function to multiple scans. 
I am sorry if my question is selly, i am new to MATLAB. Below is my code 
imvol = dicomread(squeeze('LAO-Ga003_DS.dcm'));
% create binary masks for each image
imshow(sum(imvol,3),[]) %display image
maskim=roipoly; % drow the mask to be multiplied by the image (or synchrony results). 
for ii=1:128
    for j=1:128
        phaseim(ii,j,:)=angle(fft(squeeze(imvol(ii,j,:))))';
        ampimage(ii,j,:)=real(fft(squeeze(imvol(ii,j,:))))';
        fftimage(ii,j,:)=fft(squeeze(imvol(ii,j,:)))';
    end
end 
   sync=(sum(sum(squeeze(ampimage(:,:,2)).*maskim)))/sum(sum(squeeze(abs(fftimage(:,:,2).*maskim))));
0 Kommentare
Akzeptierte Antwort
  awezmm
      
 am 25 Jul. 2019
        You can have a for loop that reads in each image and the runs the code you want.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu DICOM Format finden Sie in Help Center und File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

