How to display an image using the referencing obtained with imref3D?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hello,
I'm trying to display some 3D DICOM images using the world reference frame. So I have read my volume and applied imref3D as follows for a case that contains 83 slices:
RI=imref3d(size(I),PixelSpacing(1),PixelSpacing(2),SliceThickness);
RI.ZWorldLimits=[inf{1}.ImagePositionPatient(3) inf{83}.ImagePositionPatient(3)];
The way I would usually display one of the slices is by
imagesc(I(:,:,10))
but this will display it in the intrinsic reference frame
I tried following the example in this link http://blogs.mathworks.com/steve/2013/08/28/introduction-to-spatial-referencing/
and tried using
figure, imshow(I(:,:,1),RI);
but I get the error "Spatial referencing inputs to imshow must be 2-D."
Can someone help me with this? Also, is it possible to render the volume? and can I use imagesc instead of imshow?
Any help is appreciate it. Thank you in advance.
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Geometric Transformation and Image Registration dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!