Dwt transformation in RGB image.

2 views (last 30 days)
Irshad
Irshad on 16 Mar 2013
How can I perform dwt transformation in RGB image without using wavemenu tools. It is showing an error regarding that it should be between 0.0 and 1.0. Answer me pls as soon as possible......

Answers (1)

Image Analyst
Image Analyst on 16 Mar 2013
Try passing it into im2double() first.
  3 Comments
Irshad
Irshad on 17 Mar 2013
it would be grateful if you could send the correct coding
The coding I used is
"load banaswt
nbcol = size(map,1);
I=im2double(X)
[cA1,cH1,cV1,cD1] = dwt2(I,'db1');
whos
cod_X = wcodemat(I,nbcol);
cod_cA1 = wcodemat(cA1,nbcol);
cod_cH1 = wcodemat(cH1,nbcol);
cod_cV1 = wcodemat(cV1,nbcol);
cod_cD1 = wcodemat(cD1,nbcol);
subplot(2,2,1), image(wcodemat(cod_cA1,nbcol));
title('Approximation')
subplot(2,2,2), image(wcodemat(cod_cA1,nbcol));
title('Horiz. Detail')
subplot(2,2,3), image(wcodemat(cod_cA1,nbcol));
title('Vertical Detail')
subplot(2,2,4), image(wcodemat(cod_cA1,nbcol));
title('Diag. Detail')"
Image Analyst
Image Analyst on 17 Mar 2013
Sorry I can't help. I don't have the Wavelet toolbox.

Sign in to comment.

Categories

Find more on Wavelet Toolbox in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!