how to convert a <188x224x6> image to a <1x1> cell

while taking dual tree complex wavelet transform, i get a 1x1 cell as high freq sub band image. using cell2mat function the size of the high freq sub band image is obtained as 47x56x6 . i increased the size of the image to 188x224x6. now i want to convert this 188x224x6 image to 1x1 cell. please help me in this. tell me the code if possible

1 件のコメント

Oleg Komarov
Oleg Komarov 2011 年 3 月 14 日
A minor remark: "to convert" is not appropriate terminology in this case.
It's not like you're converting a string '34' to the corresponding 34 double.
You store/enclose your aray in a cell.

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

回答 (1 件)

Laura Proctor
Laura Proctor 2011 年 3 月 14 日

1 投票

Simply enclose the resulting image variable in curly braces.
For example:
a = rand(188,224,6);
b = {a};
b results in a 1x1 cell.

カテゴリ

ヘルプ センター および File ExchangeConvert Image Type についてさらに検索

質問済み:

2011 年 3 月 14 日

Community Treasure Hunt

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

Start Hunting!

Translated by