Error in iswt2/reconsLOC (line 153) ca(sR,sC),ch(sR,sC,k),cv(sR,sC,k),cd(sR,sC,k), ... Error in iswt2 (line 122) a = reconsLOC(a,h,v,d);
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi I am trying to reconstruct the input image with just the horizontal coefficients of stationary wavelet transform,
[A,H,V,D ] = swt2(x,1,'sym4');
A = 0; V = 0; D = 0; %i am setting other co-efficents to zero since i am only intersted in the values of H %
Y = iswt2(A,H,V,D,'sym4') ; %this gives the following error below%
Error in iswt2/reconsLOC (line 153) ca(sR,sC),ch(sR,sC,k),cv(sR,sC,k),cd(sR,sC,k), ...
Error in iswt2 (line 122) a = reconsLOC(a,h,v,d);
How can i resolve this?
0 commentaires
Réponses (1)
Walter Roberson
le 17 Mai 2017
You need to set the coefficients to a matrix of 0 the same size as H, not to scalar 0.
A = zeros(size(H),class(H));
0 commentaires
Voir également
Catégories
En savoir plus sur Image Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!