make a 2D image as a 3D image

1 view (last 30 days)
talayeh ghodsi
talayeh ghodsi on 29 May 2019
Commented: talayeh ghodsi on 29 May 2019
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

Accepted Answer

Matt J
Matt J on 29 May 2019
You could replicate the 2D image to form multiple slices
image3D = repmat(image2D,1,1,n);

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!