Thread Subject: Using wavelet decomposition function dwt2

Subject: Using wavelet decomposition function dwt2

From: Minh Tran

Date: 8 Nov, 2009 09:42:03

Message: 1 of 3

I'm having trouble with using dwt2 on my intensity image, specifically the LL output. From the examples I've seen elsewhere, the LL output shouldn't be very different from the original intensity image, yet mine is quite whitewashed/overexposed. Any suggestions about this problem ?

My code :
i = hsi_image(:,:,3);
[LL,LH,HL,HH] = dwt2(i,'db4');

Subject: Using wavelet decomposition function dwt2

From: Wayne King

Date: 8 Nov, 2009 11:35:04

Message: 2 of 3

"Minh Tran" <overseer47@gmail.com> wrote in message <hd63pb$bgc$1@fred.mathworks.com>...
> I'm having trouble with using dwt2 on my intensity image, specifically the LL output. From the examples I've seen elsewhere, the LL output shouldn't be very different from the original intensity image, yet mine is quite whitewashed/overexposed. Any suggestions about this problem ?
>
> My code :
> i = hsi_image(:,:,3);
> [LL,LH,HL,HH] = dwt2(i,'db4');

Hi Minh, what command(s) are you using to actually view the images? It's hard for anyone to say without seeing those commands and knowing something about your image. Can you reproduce this behavior with one of the images that come with the wavelet toolbox, so we can all see?

>>load woman

for example

wayne

Subject: Using wavelet decomposition function dwt2

From: Minh Tran

Date: 8 Nov, 2009 15:50:03

Message: 3 of 3

Thanks, Wayne. This is the image I'm working on and the LL output from dwt2:
http://yfrog.com/eldwtproblemp

And this is the results they got on wikimedia :
http://commons.wikimedia.org/wiki/File:Jpeg2000_2-level_wavelet_transform-lichtenstein.png

So apparently something's not right here. I tried grayscale conversion as the guy on wikimedia did instead of using RGB->HSI conversion and it's still the same. The problem shouldn't be the filter - I mean JPEG2000 is different from db4 but shouldn't be that much, as I tried many other filters too (haar, db, bior, etc.). The situation's the same with all other images - whitewashed/overexposed and of course almost useless LL output.

FYI, I'm using the colorspace converter by Pascal Getreuer (http://www.mathworks.com/matlabcentral/fileexchange/7744) to do RGB->HSI conversion. I run the dwt2 on the intensity image immediately after doing the conversion.

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
dwt2 wavelet tr... Minh Tran 8 Nov, 2009 04:44:04
rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com