MATLAB Answers


converting cross sectional slides to vertical section in CT scan images

Asked by Shirin
on 20 Apr 2014
Latest activity Commented on by Matt J
on 20 Apr 2014
I have 76 2D cross sectional slices of CT scan images. I want to generate a vertical section by those slices.
Can somebody please give me an idea or tip about how to do it?
a sample of CT slices:
a sample of what I'm looking for:


Sign in to comment.


1 Answer

Answer by Matt J
on 20 Apr 2014
 Accepted Answer

Instead of having 76 separate image matrices, you should hold all the slices in an MxNxP array. If A is this array, then you can extract slices along whatever axis you want by indexing
A(:,:,i); %axial
A(:,i,:); %sagittal/coronal
A(i,:,:); %coronal/sagittal
You can also use griddedInterpolant() to interpolate oblique slices.

  1 Comment

If the 76 images came from DICOM, you can import to a MATLAB 3D volume using one of several tools on the File Exchange, e.g.,

Sign in to comment.