Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: URGENT!!!! how to inverse wcodemat
Replies: 1   Last Post: Oct 17, 2013 10:15 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Shivakumar B R

Posts: 1
Registered: 10/17/13
Re: URGENT!!!! how to inverse wcodemat
Posted: Oct 17, 2013 10:15 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Polly Lam" <polly.ltc@student.cityu.edu.hk> 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?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.