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 commentaires

Matt J
Matt J le 23 Jan 2022
Modifié(e) : Matt J le 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?
KALYAN ACHARJYA
KALYAN ACHARJYA le 23 Jan 2022
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.
Sally Sakr
Sally Sakr le 23 Jan 2022
@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

Connectez-vous pour commenter.

 Réponse acceptée

Matt J
Matt J le 23 Jan 2022
Modifié(e) : Matt J le 23 Jan 2022

0 votes

imshow is for displaying 2D images. For 3D images (grayscale), you could use volumeViewer.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by