View License

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

» Watch video

Highlights from
Plot wavelet image (2D) decomposition

4.0 | 4 ratings Rate this file 18 Downloads (last 30 days) File Size: 1.85 KB File ID: #27375 Version: 1.3
image thumbnail

Plot wavelet image (2D) decomposition



26 Apr 2010 (Updated )

A short function for displaying wavelet image decomposition coefficients

| Watch this File

File Information

This function plots the result of wavedec2 matlab function in two different modes. The first one called 'tree' displays all approximations and details coefficients (horizontal, vertical, diagonal), the second one called 'square' displays the classical "squared" representation of a wavelet image decomposition


This file inspired Wavelet Decomposition For Images.

Required Products Image Processing Toolbox
Wavelet Toolbox
MATLAB release MATLAB 7.9 (R2009b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
22 Apr 2016 Elysi Cochin

is it possible to plot lines separating the decomposition when viewing in square mode?

Comment only
01 May 2015 Vasumathi Ganesh

how to run this file?

Comment only
10 Dec 2013 Génesis

22 May 2012 Santiago

It works perfectly, thanks.

17 Apr 2012 madhuri sachane

I am trying to run this code,but it doesn't. showing error at
error displayed like this,
Maximum recursion limit
of 500 reached. Use
to change the limit. Be
aware that exceeding your
available stack space can
crash MATLAB and/or your

Error in ==> wextend>testLoc
I also confuse how to set rescale value.
is it the length of image?
please hlelp me.

Comment only
31 Dec 2010 Michael Chan

Michael Chan (view profile)

Thank you, Benjamin. This post is helpful.

19 Dec 2010 Benjamin Tremoulheac

Code works but obviously you do not have a valid colormap as imresize function try to tell you.

Comment only
15 Nov 2010 Adnan

Adnan (view profile)

code does not work. i get error saying:

??? Error using ==> iptcheckmap at 40
Function IMRESIZE expected its second input argument, MAP, to be a valid colormap.
Valid colormaps cannot have values outside the range [0,1].

Error in ==> imresize>parsePreMethodArgs at 369
iptcheckmap(map, mfilename, 'MAP', 2);

Error in ==> imresize>parseInputs at 264
[params.A,, params.scale, params.output_size] = ...

Error in ==> imresize at 141
params = parseInputs(varargin{:});

Error in ==> plotwavelet2 at 74
dec{k} = [imresize(dec{k+1},size(H{k})) H{k} ; V{k} D{k}];

Error in ==> plotdwt at 4

29 Apr 2010 1.3

Minor corrections in help

Contact us