File Exchange

image thumbnail

Contourlet toolbox

version 1.0.0.0 (429 KB) by Minh Do
Contourlet transform: an efficient and flexible multiresolution, local, and directional image ...

35 Downloads

Updated 27 Oct 2005

View License

Contourlet toolbox: a MATLAB toolbox for computing the contourlet transform and its applications.

The contourlet transform is described in:

The contourlet transform: an efficient directional multiresolution image representation,
Minh N. Do and Martin Vetterli,
IEEE Transactions on Image Processing,
December 2005.

Other related papers and software are available at:
www.ifp.uiuc.edu/~minhdo

Cite As

Minh Do (2021). Contourlet toolbox (https://www.mathworks.com/matlabcentral/fileexchange/8837-contourlet-toolbox), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (50)

Kazi Shakib

I guess the challenge you are having is with the resampc.c file. (1) install a compatible C or C++ compiler on your system (2) run from Matlab >mex –setup to see if the compiler is successfully configured (3) recompile the file >mex resampc.c (4) test the code

Jameel Ahmed

Hello all, as I have installed the MinGW but when I run the contourlet coding then it still shows this error "Undefined function or variable 'pdfbdec'". Please suggest me what should I do

Jameel Ahmed

Hello. I need urgent help. I am running contourlet coding for image fusion but there is error "Undefined function or variable 'pdfbdec' ". It needs to install contourlet toolbox kit but I don't know how to install.
Can anyone help me how to install contourlet toolkit and how to run program after toolkit

nahid Qaderi

Hi,
I got this error when I use the pdfbdec, "Matrix dimensions must agree".
It does not work for some images in my data set, for example, it works for an image of size (170,170), but it gives me error for an image of size (85,85). I appreciate it if anyone can help me with this problem.
Thanks.

This is tool box not working.If any one gets a working tool box,please mail me on abheedheerdondapati@gmail.com

ali kazemi

Hi,
There is one mex file (resampc.c) in the Contourlet Toolbox that might need to be recompiled.
This can be done by typing from the Matlab command window: >> mex resampc.c

Deeksha Chauhan

This toolbox is not working. If anyone gets a proper working toolbox, then please send on this email id. abhinavk.ece17@itbhu.ac.in

Foroogh Mousavi

hi how to use it!
it dont hav a help!

Jameel Ahmed

Brothers, I want to run my code through this contour-let too box. Though I have installed MingW Win 64 and it is successfully installed but when I run then it shows still same error given below:
Undefined function or variable 'resampc'.

Error in resamp (line 44)
y = resampc(x, type, shift, extmod);

Error in qpdec (line 32)
y = resamp(x, 2);

Error in fbdec_l (line 41)
[p0, p1] = qpdec(x, type2);

Error in dfbdec_l (line 38)
[x0, x1] = fbdec_l(x, f, 'q', '1r', 'qper_col');

Error in pdfbdec (line 50)
xhi_dir = dfbdec_l(xhi, dfilt, nlevs(end));

Error in mainfile (line 49)
y = pdfbdec(dec2d, pfilt, dfilt,nlevs);
Kindly tell me how to run that c file in my matlab so that my code works, I am using Matlab 2016b. Thanks in advance.

shui

When I was running, something went wrong and I couldn't figure it out
[h, g] = pfilters('9-7');?? ?? ??
Error:Unexpected MATLAB operator

meaad salih

thank you so much

hardika chauhan

it generates errors when I use an image of size(300*400) or larger.

Error using -
Matrix dimensions must agree.

Error in fbdec_l (line 52)
y0 = (1 / sqrt(2)) * (p0 - sefilter2(p1, f, f, extmod, [1, 1]));

Error in dfbdec_l (line 60)
[y{2*k}, y{2*k-1}] = fbdec_l(y_old{k}, f, 'p', i,
'per');

Error in pdfbdec (line 50)
xhi_dir = dfbdec_l(xhi, dfilt, nlevs(end));

Error in ctsm (line 23)
lcoeffs = pdfbdec(L, pfilt, dfilt, nlevel);

i am getting error like this how to fix it please reply????????

deniz kumlu

You have to compile c files like 'mex resampc.c'

H z

Undefined function 'resampc' for input arguments of type 'double'.

Error in resamp (line 44)
y = resampc(x, type, shift, extmod);

Error in qpdec (line 32)
y = resamp(x, 2);

Error in fbdec_l (line 41)
[p0, p1] = qpdec(x, type2);

Error in dfbdec_l (line 38)
[x0, x1] = fbdec_l(x, f, 'q', '1r', 'qper_col');

Error in pdfbdec (line 50)
xhi_dir = dfbdec_l(xhi, dfilt, nlevs(end));

Error in pf (line 45)
y = pdfbdec(im, pfilt, dfilt, nlevs);

H z

it generate an error like the one below, please guide to fix it.

Undefined function 'resampc' for input arguments of type 'double'.

Error in resamp (line 44)
y = resampc(x, type, shift, extmod);

Error in qpdec (line 32)
y = resamp(x, 2);

Error in fbdec_l (line 41)
[p0, p1] = qpdec(x, type2);

Error in dfbdec_l (line 39)
[x0, x1] = fbdec_l(x, f, 'q', '1r', 'qper_col');

Error in pdfbdec (line 51)
xhi_dir = dfbdec_l(xhi, dfilt, nlevs(end));

Error in denoisedemo (line 42)
y = pdfbdec(nim, pfilt, dfilt, nlevs);

abdulmawla najih

it generates errors even with the images gives in the Toolbox file.
??? Undefined function or method 'resampc' for input arguments of
type 'double'.

Error in ==> resamp at 44
y = resampc(x, type, shift, extmod);

Error in ==> qpdec at 32
y = resamp(x, 2);

Error in ==> fbdec_l at 41
[p0, p1] = qpdec(x, type2);

Error in ==> dfbdec_l at 38
[x0, x1] = fbdec_l(x, f, 'q', '1r', 'qper_col');

Error in ==> pdfbdec at 50
xhi_dir = dfbdec_l(xhi, dfilt, nlevs(end));

Error in ==> decdemo at 68
coeffs = pdfbdec( double(im), pfilter, dfilter, nlevels );

how can I fix ?

Naier Mahdinejad

Nimisha

resampc.m

this file is missing.

Please mail me..

Nur'Aqilah Hamzah

Sorry to bother. I was trying to understand decdemo.m that is provide in the toolbox as a demo. but it seem to generate a error like the one below:

Undefined function 'resamp' for input arguments of type 'double'.

Error in qpdec (line 32)
y = resamp(x, 2);

Error in fbdec_l (line 41)
[p0, p1] = qpdec(x, type2);

Error in dfbdec_l (line 38)
[x0, x1] = fbdec_l(x, f, 'q', '1r', 'qper_col');

Error in pdfbdec (line 50)
xhi_dir = dfbdec_l(xhi, dfilt, nlevs(end));

Error in Test_Coding (line 11)
coeffs = pdfbdec( double(im), pfilter, dfilter, nlevels );

Please can some one help

Yan Liu

it generates errors when I use an image of size(300*400) or larger.

Error using -
Matrix dimensions must agree.

Error in fbdec_l (line 52)
y0 = (1 / sqrt(2)) * (p0 - sefilter2(p1, f, f, extmod, [1, 1]));

Error in dfbdec_l (line 60)
[y{2*k}, y{2*k-1}] = fbdec_l(y_old{k}, f, 'p', i,
'per');

Error in pdfbdec (line 50)
xhi_dir = dfbdec_l(xhi, dfilt, nlevs(end));

Error in ctsm (line 23)
lcoeffs = pdfbdec(L, pfilt, dfilt, nlevel);

Yan Liu

it generates errors when I use an image of size(300*400) or larger.

Error using -
Matrix dimensions must agree.

Error in fbdec_l (line 52)
y0 = (1 / sqrt(2)) * (p0 - sefilter2(p1, f, f, extmod, [1, 1]));

Error in dfbdec_l (line 60)
[y{2*k}, y{2*k-1}] = fbdec_l(y_old{k}, f, 'p', i,
'per');

Error in pdfbdec (line 50)
xhi_dir = dfbdec_l(xhi, dfilt, nlevs(end));

Error in ctsm (line 23)
lcoeffs = pdfbdec(L, pfilt, dfilt, nlevel);

baran ad

Hi, I had the same problem with resamc.c mex file and I tried to install SDK 7.1 for windows7 to get that function running. But it can not be successfully installed! I do not know why? I also have .NET framework 4 as SDK prerequisites. What can be the problem?

how to install contourlet toolbox in matlab and how it can further be used??? need help for using this toolbox.

dharma

nirmal

@swathi

It works not only for image of size (512x512), but also for all images with size as power of two (like 256, 1024 etc). So you need to resize the image before processing.

swathi s

This toolbox denoises image of particular size(512*512). how to resolve this problem i need to denoise images of all size

mohammad

Yunas Qazi

@ram
most probably you problem seems to be the path issue, after assuring the paths are correct
kindly check for the gcc version. Either you have a successfully configured GCC compiler or not. If not, I have already pasted a solution for MAC OS X, if you are on windows kindly google through to see how you can install GCC Compiler for your machine else it must work.

ram

while compiling mex resampc.c , error occured as

C:\PROGRA~1\MATLAB\R2012A\BIN\MEX.PL: Error: 'resampc.c' not found.

Error using mex (line 206)
Unable to complete successfully.

pls comment to rectify the error...!!

Yunas Qazi

@Othmani to solve this issue/error you need to recompile the file "resample.c" with the folliwing command.

mex resampc.c

but if it still gives you an error like :

/Applications/MATLAB_R2011b.app/bin/mex: line 305: gcc-4.2: command not found

you need to go through the following link :
http://www.mathworks.com/support/solutions/en/data/1-FR6LXJ/

As I am on Mac, so for Mac user's the following page will be very helpful
http://www.cs.nott.ac.uk/~mfv/page1/page12/files/341537a3ad8054555eb838ac0db831a8-1.html

And after these steps the files worked perfectly,
thank you Minh Do for the excellent work.

Othmani

it generates errors even with the images gives in the Toolbox file.
??? Undefined function or method 'resampc' for input arguments of
type 'double'.

Error in ==> resamp at 44
y = resampc(x, type, shift, extmod);

Error in ==> qpdec at 32
y = resamp(x, 2);

Error in ==> fbdec_l at 41
[p0, p1] = qpdec(x, type2);

Error in ==> dfbdec_l at 38
[x0, x1] = fbdec_l(x, f, 'q', '1r', 'qper_col');

Error in ==> pdfbdec at 50
xhi_dir = dfbdec_l(xhi, dfilt, nlevs(end));

Error in ==> decdemo at 68
coeffs = pdfbdec( double(im), pfilter, dfilter, nlevels );

how can I fix ?

Enrique

Thanks! It is a peace of art!

Enrique

dong sanchai

gilly liang

thank you very much

brindha rajamanickam

Very useful

Zohaib Khan

A Good set of tools. Works very well!!!

shijie zhang

I think it's pretty good!!Thank you so much for providing such a dood platform.

Wei wang

saber saleh

Xianhua Han

Sam Samoul

Hi
This is very nice work , i have a problem i don't know how to add the contourlet toolbox to my Matlab Toolbox and execute it from Command window without changing the directory of Matlab Can anybody help me in this

Sam Samoul

Please, can i find a help maual for using the toolbox of contourlet

guna sekar

fine

Mubeen Ghafoor

Bao Zaochao

Minh Do, Thank you very much! My tutor have constructed a Non_tensor product filter banks 4 years ago. Its so resemble to your works! So I'm very interesting in Contourlets. I think I 'll make useful of this Toolbox! By the way, I'm from China!

ying zhao

ice echo

thank you very much

sangwoong park

Thank you so much. Recently I am reading your papers. I guess I can solve several questions by using and analysing this toolbox. - sangwoong from korea

Pascal Getreuer

This toolbox is excellent. Everything is fast, clean, and thoroughly documented. I will certainly benefit from it. Thank you very much for your submission.

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

Inspired: PDTDFB toolbox

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!