View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Wavelet Decomposition For Images

3.3 | 3 ratings Rate this file 47 Downloads (last 30 days) File Size: 207 KB File ID: #29049 Version: 1.1

Wavelet Decomposition For Images


Michael Chan (view profile)


15 Oct 2010 (Updated )

The demo decouples the wavelet operations from the plotting.

| Watch this File

File Information

main executing reference usage: observeWaveletDecompositionBenchmark_N_levels.m

The objective is to illustrate wavelet decomposition, and to describe how operations may be done in the wavelet domain before the reconstruction. The demo decouples the wavelet operations (transform, operation in wavelet domain, and reconstruction) from the plotting.

A PSNR and MSE describes the possible distortion (however minimal) of the forward and inverse wavelet transform.

* Caveat: The image display may be subjected to the selected target image. The objective is to provide a simple framework for the understanding of working with wavelets.

If the educational demo have more elegant presentation, please do not hesitate to suggest and send feedback to author.

Thank you.

Michael Chan JT


Plot Wavelet Image (2 D) Decomposition inspired this file.

This file inspired Wavelet Transform For Image.

Required Products Wavelet Toolbox
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (10)
26 Jun 2014 Michael Chan

Michael Chan (view profile)

Hi Mehdi,
You can extract the coefficients at different levels as an obversation with any existing image(s). Would you have a wavelet feature extraction algorithm in mind or a paper you have referred to?

Comment only
12 Jun 2014 mehdi hym

Hi Michael Chan,first of all i thanking you for this usefull code , so in my application(hand vein recognition pattern) i need to use wavelet like feature extraction in order to classify data,so if give me a hand Mr Michael.

Comment only
16 Jan 2013 Michael Chan

Michael Chan (view profile)

Hi Rewati, it is. It's a form of lossy compression where you keep only the coefficients of the Approximate region(s).

Comment only
15 Jan 2013 Rewati

Rewati (view profile)

plz can u tell me that decomposed image i.e.(approximated pixel value 'A')through DWT is same as a compressed image??

Comment only
01 Jun 2012 Michael Chan

Michael Chan (view profile)

Hi Diógenes Diógenes,

Did you run the observeWaveletDecompositionBenchmark_N_levels.m file? As stated in the readme.txt, it is the main executing reference usage file.

For a single decomposition level, set

levelOfDecomposition = 1; % level N = 1

For the inquiries regarding the variables, in image wavelet decomposition, the segments are divided according to the (H)orizontal, (V)ertical, (A)pproximate and (D)iagonal regions.

Usually, the coefficients are represented in the form (in the example of 1 level wavelet decomposition):
coeff_A1, coeff_H1;
coeff_V1, coeff_D1;

I hope that helps.

Comment only
25 May 2012 Diógenes Diógenes

hi, I am a new user of Matlab, I'm trying to use the function, but is returning the error:

?? Undefined function or variable 'H'.

What H and V represent and how they should be defined?

I'm trying to make a single decomposition level grayscale images. How can I make the decomposition into multiple images at once? Thank you!

Comment only
23 Mar 2012 Kalamaya

Please mention that wavelet toolbox is needed here so everyone knows before we download it and find out it doesnt work.

Comment only
17 Feb 2012 Alexander

15 Nov 2010 Adnan

Adnan (view profile)

18 Oct 2010 Joan

Joan (view profile)

Clear and clean code, well commented, very nice code. People should learn to code like this. Thanks a lot for this !

09 Apr 2012 1.1

Wavelet toolbox is required.

Contact us