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 Commenti

Matt J
Matt J il 23 Gen 2022
Modificato: Matt J il 23 Gen 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

Accedi per commentare.

 Risposta accettata

Matt J
Matt J il 23 Gen 2022
Modificato: Matt J il 23 Gen 2022
imshow is for displaying 2D images. For 3D images (grayscale), you could use volumeViewer.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by