How to Extract Cell Arrays contained in a cell

32 ビュー (過去 30 日間)
Bashir
Bashir 2012 年 4 月 29 日
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

回答 (2 件)

Jan
Jan 2012 年 4 月 29 日
C = {{1:4, 5:20}};
D1 = C{1}{1}
D2 = C{1}{2}

Image Analyst
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 件のコメント
Bashir
Bashir 2012 年 4 月 30 日
I did not make it that way, what I have is a result of curvelet transformation performed on an image and i need to work with the output. Thanks
Jan
Jan 2012 年 4 月 30 日
Dear Bashir, does my suggestion help you? If not, I still do not understand, what you need.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by