How can I get different 2D views of a 3d medical images which has been saved in 3D matrix?
    5 views (last 30 days)
  
       Show older comments
    
    Sara Salimi
 on 24 Jan 2018
  
    
    
    
    
    Answered: KH TOHIDUL ISLAM
      
 on 27 Aug 2018
            Hi
I have saved a stack of MRI in a 3D matrix (320x320x60). I can see 2d view (saggital) of (xy view) by this command,
imshow(M(:,:,15),[])
for slice number 15 for example. How can I see the othe two views, axial and coronal views (yz,xz)?
Thanks
0 Comments
Accepted Answer
  KH TOHIDUL ISLAM
      
 on 27 Aug 2018
         Hi Sara Salimi,
    As you have 320x320x60 volume; volume=[320x320x60];
    Middle XY Slice will be as:  
    XY_Slice=volume(:,:,30);
    Middle XZ Slice will be as:  
    XZ_Slice=permute(volume(160,:,:),[2 3 1]);
    Middle YZ Slice will be as:  
    YZ_Slice=permute(volume(:,160,:),[1 3 2]);
Regards,
Tohid
0 Comments
More Answers (1)
  Rik
      
      
 on 24 Jan 2018
        There are many viewers to be found on the File Exchange. Have a look at the answers to this question.
See Also
Categories
				Find more on Image Acquisition Toolbox Supported Hardware in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!