HOW TO CONVERT 2D IMAGE TO 3D IMAGES.

Hi All,
I have 41 slice images in png format.
Anyone know how to convert it into 3D images. So that the images converted have thickness (let say 2.332).
I've tried like below but failed.
I = imread('images1.png');
Images13D = repmat(I, 1, 1, 2.332);
imwrite(Images13D ,'Images13D.png ');
anyone can help me?

1 Comment

You've already asked this question and the reason that this won't work has already been explained. You were given a suggestion to use meshgrid/ndgrid.

Sign in to comment.

Answers (0)

Asked:

on 8 Oct 2021

Commented:

DGM
on 8 Oct 2021

Community Treasure Hunt

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

Start Hunting!