I am getting error while performing dct and dwt for images,please correct it or give some suggestions.Thanks in advance
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
kaavya subramani
am 12 Sep. 2015
Kommentiert: kaavya subramani
am 21 Sep. 2015
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 12 Sep. 2015
dwt is for vectors. dct2 is for 2 dimensional arrays. You are trying to pass in 3 dimensional arrays.
5 Kommentare
Walter Roberson
am 19 Sep. 2015
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Signal Analysis finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!