필터 지우기
필터 지우기

I want to display image from cell array .

조회 수: 24 (최근 30일)
Pradeep Gowda
Pradeep Gowda 2015년 8월 26일
편집: Sripoornima T 2023년 3월 17일
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
Mohd Shahrukh
Mohd Shahrukh 2018년 2월 2일
i want to read the images folder to folder plz provide any sugession how i will do .
Jh Zeb
Jh Zeb 2018년 3월 26일
Hi Pardeep, I am trying to do something similar. Can you help me with it?

댓글을 달려면 로그인하십시오.

답변 (2개)

Walter Roberson
Walter Roberson 2015년 8월 28일
newimage = cell2mat(YourCellArray);
imshow(newimage)
  댓글 수: 2
SHAHMUSTAFA MUJAWAR
SHAHMUSTAFA MUJAWAR 2017년 5월 6일
imshow(cell2mat(imageCellArray(1,2)));
Walter Roberson
Walter Roberson 2017년 5월 6일
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})

댓글을 달려면 로그인하십시오.


Sripoornima T
Sripoornima T 2023년 3월 17일
편집: Sripoornima T 2023년 3월 17일
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

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by