File Exchange

image thumbnail

Plot wavelet image (2D) decomposition

version (1.85 KB) by Benjamin Tremoulheac
A short function for displaying wavelet image decomposition coefficients


Updated 29 Apr 2010

View License

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

Comments and Ratings (8)

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

how to run this file?



It works perfectly, thanks.

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.

Michael Chan

Thank you, Benjamin. This post is helpful.

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


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


Minor corrections in help

MATLAB Release Compatibility
Created with R2009b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: Wavelet Decomposition For Images