How to Extract Cell Arrays contained in a cell
32 ビュー (過去 30 日間)
古いコメントを表示
Hello,pls i have a cell array that contains 4 cells,(i.e. 1x1 1x16 1x32 and 1x1, each of which represent an image.)How can i extract each of this cell(as a matrix) and display as an image. Thanks
0 件のコメント
回答 (2 件)
Image Analyst
2012 年 4 月 29 日
Use braces:
image1 = cellArray{1}; % extract image #1
image2 = cellArray{2}; % and so on.
imshow(image1, []); % the [] is important if they are double or single.
By the way, those are some very tiny images. I mean is a 1x1 array even an image at all?
6 件のコメント
Jan
2012 年 4 月 30 日
Dear Bashir, does my suggestion help you? If not, I still do not understand, what you need.
参考
カテゴリ
Help Center および File Exchange で Data Type Conversion についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!