Dwt transformation in RGB image.

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......

Réponses (1)

Image Analyst
Image Analyst le 16 Mar 2013

0 votes

Try passing it into im2double() first.

3 commentaires

Irshad
Irshad le 17 Mar 2013
I have done the class conversion im2double still it's showing that " Error using ==> image Error using ==> image TrueColor CData contains element out of range 0.0 <= value <= 1.0", I am using true color image and want to decompose it by dwt without changing into grayscale. Please help me.
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 le 17 Mar 2013
Sorry I can't help. I don't have the Wavelet toolbox.

Connectez-vous pour commenter.

Produits

Question posée :

le 16 Mar 2013

Community Treasure Hunt

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

Start Hunting!

Translated by