how to get x,y,z coordinates of 3d dicom image.I have 3d dicom image from which i can get x and y coordinates but z coordinate i cant get it provides me slice no.how to get that z coordinate
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how to get x,y,z coordinates of a point on 3d dicom image.I have 3d dicom image from which i can get x and y coordinates but z coordinate i cant get. it provides me slice no.how to get that z coordinate
0 commentaires
Réponses (2)
Image Analyst
le 13 Juil 2017
Multiply the slice number, which you say you know, by the slice separation, which should be in the dicom header.
0 commentaires
drummer
le 28 Jan 2020
info = dicominfo('yourImage.dcm');
slice_number = info.InstanceNumber; % Gives you the slice number
slice_thickness = info.SliceThickness; % Gives you the slice thickness
z = slice_number*slice_thickness; % number of steps you made times your voxel metric gives you the z coordinate.
It's pretty much what Image Analyst said. But you should take care on your reference.
Some cases, slice 1 is the last and slice n is the first. Check it before handling as aforementioned.
If n is the first:
z = last_slice_number*slice_thickness - slice_number*slice_thickness.
Sometimes it happens with multimodalities images.
Cheers
0 commentaires
Voir également
Catégories
En savoir plus sur DICOM Format 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!