displaying co-efficient

2 ビュー (過去 30 日間)
kash
kash 2012 年 3 月 8 日
i HAVE A CODE
x=imread('st.tif');
x=rgb2gray(x);
x=double(x);
[Faf, Fsf] = FSfarras;
[af, sf] = dualfilt1;
J = 4;
T = 10;
[r c ]=size(x)
w = dualtree2D(x,J,Faf,af)
if i multiply w with another matrix i get error ,if i use cell2mat function even then i get error
cell2mat(w)
??? Error using ==> cell2mat at 55
Cannot support cell arrays containing cell arrays or objects.
please help how to solve this ,struck here for a long

採用された回答

Wayne King
Wayne King 2012 年 3 月 8 日
That is because w is a cell array of cell arrays.
For example:
x = rand(16);
J = 1;
[Faf, Fsf] = FSfarras;
[af, sf] = dualfilt1;
w = dualtree2D(x, J, Faf, af);
w{2}{1} gives you the approximation image at level 1, so you can do:
App = w{2}{1};
The above is matrix
To get the dual tree detail coefficients (H,V,D),enter:
Atreedetcoefs = w{1}{1};
Btreedetcoefs = w{1}{2};
The above are cell arrays of matrices, you can use cell2mat on Atreedetcoefs and Btreedetcoefs, but you have to be careful that you know how the H,V, and D matrices are concatenated.
  4 件のコメント
kash
kash 2012 年 3 月 8 日
for j=1:6 % number of stages
for p=1:2
for d1=1:2
for d2=1:3
wf{j}{p}{d1}{d2)=V
end
end
end
end
kash
kash 2012 年 3 月 8 日
App = w{2}{1}
i performed some operationin App and have same size
if i do
A{2}{1}=App
i get as {1x2},but i need {1x2}{1x2}to perform idualtree please help

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImport, Export, and Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by