how can i make 3d image from 2d slices ?

hi, how can i make 3d image from 5 slices of 2d images (rgb) ?
i tried cat command but when i wrote imshow to show the resulted image it tell that there was an error in this command (imshow) so what shall i do ?
this is what appeared ;
Error in imshow (line 253)
images.internal.imageDisplayParseInputs({'Parent','Border','Reduce'},preparsed_varargin{:});

3 Comments

Matt J
Matt J on 23 Jan 2022
Edited: Matt J on 23 Jan 2022
You haven't shown us what you did.
Also, you've only show us part of the error message.
Also, what does it mean for a 3D image to be RGB? Are you trying to display the internal structure of the volume in color somehow?
Please see the multi-dimensional array.
What does 2D & 3D images mean? You may consider the multiple depth layer in 3d array with individual slices.
@Matt J I mean that the images that I have are colored 2d images, I only try to get a 3d image from 5 slices

Sign in to comment.

 Accepted Answer

Matt J
Matt J on 23 Jan 2022
Edited: Matt J on 23 Jan 2022
imshow is for displaying 2D images. For 3D images (grayscale), you could use volumeViewer.

More Answers (0)

Asked:

on 23 Jan 2022

Commented:

on 23 Jan 2022

Community Treasure Hunt

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

Start Hunting!