Try
*imagesc(Y);*
use *colormap(gray)* if needed.
-Tilak
On Thu, Aug 20, 2009 at 8:22 AM, ali_khodaie2002
wrote:
> hi my dear freinds around the world,
> i wanted to transform(dwt) an image(barbara)and inverse it.it is my first
> time i have worked with dwt.these are my codes:
>
> X=((imread('barbara.bmp')));
> [cA,cH,cV,cD] = dwt2(X,'haar');
> Y = idwt2(cA,cH,cV,cD,'haar');
> figure,imshow(Y)
>
> but the resulting image isn`t like the first image .
> what `s wrong with my codes?
>
> thanks in advance.
>
>
>