File Exchange

image thumbnail

Plot wavelet image (2D) decomposition

version 1.3 (1.85 KB) by

A short function for displaying wavelet image decomposition coefficients



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)

Elysi Cochin

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

Michael Chan (view profile)

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.


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



Minor corrections in help

MATLAB Release
MATLAB 7.9 (R2009b)

Inspired: Wavelet Decomposition For Images

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

» Watch video