"Polly Lam" <firstname.lastname@example.org> wrote in message <eeb359f.-1@WebX.raydaftYaTP>... > Hi All, > > > I am facing a big problem about wcodemat. Actually, I am not familiar > with Matlab because I am a new user. > > > Here's my code to transform an original image: > > > % my_image is a grayscale image > [ca,ch,cv,cd]=dwt2(my_image,'db1'); > > > cod_ca=wcodemat(ca,nbcol); > cod_ch=wcodemat(ch,nbcol); > cod_cv=wcodemat(cv,nbcol); > cod_cd=wcodemat(cd,nbcol); > > > % Timage is the final image after dwt2 > Timage = [cod_ca, cod_ch;cod_cv, cod_cd]; > > > After dwt, I just store Timage. When I want to do idwt2 to convert it > into the original image, I found it is impossible, because I have to > pass ca,ch,cv,cd to idwt2, but I didn't store it before. > > > orig_image= idwt2(ca,ch,cv,cd,size(Timage)); > > > Therefore, I want to ask how to inverse wcodemat??? Does any built-in > functions? How can I get back ca,ch,cv,cd if I only got > cod_ca,cod_ch,cod_cv,cod_cd??? > > > Please help me.
Hi Pam, I'm also facing the same problem. Anybody has the solution?