how to perform integerr to integer wavelet transform on a image
Mostra commenti meno recenti
I have followed the steps in the lwr2 page of documentation but i hace error
My image size is 512 x 512
j=imread('F:\MAT WORK\COVER OBJECT\cranial scan.jpg');
>> haarint=liftwave('haar','int2int');
>> [cA cH cV cD]=lwt2(j,haarint);
??? Error using ==> plus
Integers can only be combined with integers of the same class, or scalar doubles.
Error in ==> lsupdate at 43 y = y + t(:,1:sx(2),:);
Error in ==> lwt2 at 106 case 'd' , H = H + lsupdate('r',L,liftFILT,DF,sH,LStype);
Risposta accettata
Più risposte (1)
Wayne King
il 2 Apr 2013
You should tell us more about your image. What is it's size and class?
Does the following work for you? It should.
liftscheme = liftwave('haar','int2int');
imdata = imread('ngc6543a.jpg');
[cA cH cV cD]=lwt2(imdata,liftscheme);
3 Commenti
Obuli Yuvaraj
il 2 Apr 2013
Obuli Yuvaraj
il 2 Apr 2013
Walter Roberson
il 8 Apr 2013
Please show
class(imdata)
class(liftscheme)
Categorie
Scopri di più su Image Analysis in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!