MATLAB: Make a 2D image as a 3D image

image processingsignal processing

Hello every body. Is there any solution to convert a single 2D image to 3D image with z=0 ? I need to convert my 2D image to 3D image to compare it with a 3D volume.
Best Regards

Best Answer

You could replicate the 2D image to form multiple slices
image3D = repmat(image2D,1,1,n);
Related Question