I want to display image from cell array .

17 visualizaciones (últimos 30 días)
Pradeep Gowda
Pradeep Gowda el 26 de Ag. de 2015
Editada: Sripoornima T el 17 de Mzo. de 2023
I have divided my image into sub-images and have stored them in a cell array. And processed them , now I want to display them as one single entity. Any suggestions would help me.
  3 comentarios
Mohd Shahrukh
Mohd Shahrukh el 2 de Feb. de 2018
i want to read the images folder to folder plz provide any sugession how i will do .
Jh Zeb
Jh Zeb el 26 de Mzo. de 2018
Hi Pardeep, I am trying to do something similar. Can you help me with it?

Iniciar sesión para comentar.

Respuestas (2)

Walter Roberson
Walter Roberson el 28 de Ag. de 2015
newimage = cell2mat(YourCellArray);
imshow(newimage)
  2 comentarios
SHAHMUSTAFA MUJAWAR
SHAHMUSTAFA MUJAWAR el 6 de Mayo de 2017
imshow(cell2mat(imageCellArray(1,2)));
Walter Roberson
Walter Roberson el 6 de Mayo de 2017
SHAHMUSTAFA MUJAWAR if you only want to display one entry out of the cell array, then it would be more efficient to
imshow(imageCellArray{1,2})

Iniciar sesión para comentar.


Sripoornima T
Sripoornima T el 17 de Mzo. de 2023
Editada: Sripoornima T el 17 de Mzo. de 2023
To display an image from cellarray, you need to convert it to either uint8 or double. If you have grayscale image, you can try the below code.
mat = uint8(cell_array); % Convert cell array to numeric array of type uint8
imshow(mat); % Display image from numeric array
If you have rgb image, then you need to convert it into 3D array(row, col, colorchannel).
numeric_array = cat(3, cell_array{:}); % Convert cell array to numeric array of type uint8 with 3D
imshow(numeric_array); % Display image

Categorías

Más información sobre Images en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by