I am getting error while performing dct and dwt for images,please correct it or give some suggestions.Thanks in advance
2 ビュー (過去 30 日間)
古いコメントを表示
kaavya subramani
2015 年 9 月 12 日
コメント済み: kaavya subramani
2015 年 9 月 21 日
1)
for ii=1:length(yy1)%yy1 contains 2 cells of size 192x192x3
dwt{1,ii}=dwt(yy1{ii},'db4');% i need to store approximation coefficient alone.
end
2)
for ii=1:length(yy1)
dct{1,ii}=dct2(yy1{ii});% error is 'matrix dimension must agree'
end
0 件のコメント
採用された回答
Walter Roberson
2015 年 9 月 12 日
dwt is for vectors. dct2 is for 2 dimensional arrays. You are trying to pass in 3 dimensional arrays.
5 件のコメント
Walter Roberson
2015 年 9 月 19 日
It looks to me as if you might have a corrupted installation or else a corrupted path. Try
resetdefaultpath
and then try again. If that fails you need to reinstall the wavelet toolbox.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Discrete Multiresolution Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!