File Exchange

image thumbnail

Plot wavelet image (2D) decomposition

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

5 Downloads

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?

Génesis

Santiago

It works perfectly, thanks.

hello,
I am trying to run this code,but it doesn't. showing error at
>>plotwavelet2(C,S,level,wavelet,rv,'square');
error displayed like this,
Maximum recursion limit
of 500 reached. Use
set(0,'RecursionLimit',N)
to change the limit. Be
aware that exceeding your
available stack space can
crash MATLAB and/or your
computer.

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.

Adnan

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.map, 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
plotwavelet2(C,S,4,'haar',nbcol,'square');

Updates

1.3.0.0

Minor corrections in help

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

Inspired: Wavelet Decomposition For Images