I want to display image from cell array .
26 ビュー (過去 30 日間)
古いコメントを表示
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
2018 年 2 月 2 日
i want to read the images folder to folder plz provide any sugession how i will do .
回答 (2 件)
Walter Roberson
2015 年 8 月 28 日
newimage = cell2mat(YourCellArray);
imshow(newimage)
2 件のコメント
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
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
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!