MATLAB: How to convert 2D image into 3D ?

Image Processing Toolboximage reconstruction

Hello everybody,my graduation project is about 3D mri visualization ,I want to convert 2D images into 3D …could anyone help me plz

Best Answer

try cat(3,...)
image3D = cat(3, slice1, slice2, slice3, slice4, slice5);
You could put it into a loop
for slice = 1 : totalNumberOfSlices
thisSlice = GetSlice(); % Whatever you have to do to get one 2D image.
if slice == 1
image3D = thisSlice;
else
image3D = cat(3, image3D, thisSlice);
end
end
Related Question