Code covered by the BSD License  

Highlights from
Plot wavelet image (2D) decomposition

4.0

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

Plot wavelet image (2D) decomposition

by

 

26 Apr 2010 (Updated )

A short function for displaying wavelet image decomposition coefficients

| Watch this File

File Information
Description

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

Acknowledgements

This file inspired Wavelet Decomposition For Images.

Required Products Wavelet Toolbox
Image Processing 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 (6)
10 Dec 2013 GĂ©nesis  
22 May 2012 Santiago

It works perfectly, thanks.

17 Apr 2012 madhuri sachane

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.

31 Dec 2010 Michael Chan

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.

15 Nov 2010 Adnan Abdulally

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
29 Apr 2010

Minor corrections in help

Contact us