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.
HOW TO CONVERT 2D IMAGE TO 3D IMAGES.
28 次查看(过去 30 天)
显示 更早的评论
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?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!