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 (최근 30일)
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

답변 (2개)

Image Analyst
Image Analyst 2017년 7월 13일
Multiply the slice number, which you say you know, by the slice separation, which should be in the dicom header.

drummer
drummer 2020년 1월 28일
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

카테고리

Help CenterFile Exchange에서 DICOM Format에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by