Code covered by the BSD License  

Highlights from
Hidden Markov Tree model of Contourlet Transform

Be the first to rate this file! 34 Downloads (last 30 days) File Size: 43.7 KB File ID: #29322

Hidden Markov Tree model of Contourlet Transform

by

 

MATLAB files that fit a hidden Markov tree model

| Watch this File

File Information
Description

MATLAB files that fit a hidden Markov tree model to the contourlet coefficients of images. This package also includes functions that uses the model for denoising and texture retrieval applications. These functions are based on the journal "Directional Multiscale Modeling of Images Using the Contourlet Transform" by D. D.-Y. Po and M. N. Do, and require the Contourlet Toolbox, written by Minh N. Do, which can be obtained from this link:
http://www.ifp.uiuc.edu/~minhdo/software/
For detailed instructions on how to use this package, refer to the included readme file.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.2 (R2006a)
Other requirements These functions require the Contourlet Toolbox, written by Minh N. Do, which can be obtained from this link: http://www.ifp.uiuc.edu/~minhdo/software/
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
25 Jul 2013 ashkan abbasi

wih VC++ 2005
Creating library C:\Users\ashkan\AppData\Local\Temp\mex_OG4cvB\templib.x and object C:\Users\ashkan\AppData\Local\Temp\mex_OG4cvB\templib.exp
pdfbcalc_KLD.obj : error LNK2019: unresolved external symbol "double __cdecl KLD_upb(class THMT,class THMT)" (?KLD_upb@@YANVTHMT@@0@Z) referenced in function "double __cdecl pdfbcalc_KLD(struct mxArray_tag const *,struct mxArray_tag const *,int *)" (?pdfbcalc_KLD@@YANPBUmxArray_tag@@0PAH@Z)
pdfbcalc_KLD.obj : error LNK2019: unresolved external symbol "public: __thiscall THMT::THMT(struct mxArray_tag const *,int *)" (??0THMT@@QAE@PBUmxArray_tag@@PAH@Z) referenced in function "double __cdecl pdfbcalc_KLD(struct mxArray_tag const *,struct mxArray_tag const *,int *)" (?pdfbcalc_KLD@@YANPBUmxArray_tag@@0PAH@Z)
pdfbcalc_KLD.mexw32 : fatal error LNK1120: 2 unresolved externals

C:\PROGRA~1\MATLAB\R2012A\BIN\MEX.PL: Error: Link of 'pdfbcalc_KLD.mexw32' failed.

07 Mar 2013 Bruce Wen

Dear Duncan Po:
I was trying to use your toolbox to analyze an image ‘sample.gif’ using the self-made texture dictionary with 50 files named ‘1.gif,2.gif,3.gif…50.gif’
I used following lines in Matlab:
tdb = {'1','2'…’50’};

LibraryPath='C:\Users\WonderVS\Desktop\Texture Retrieval\program\Library\';
ModelPath='C:\Users\WonderVS\Desktop\Texture Retrieval\program\mdir\';

kld = pdfbclassify_texture('sample','gif', tdb, LibraryPath, ModelPath, 1);

However I got the feedback from matlab as following:
Error using imread (line 410)
File "C:\Users\WonderVS\Desktop\Texture
Retrieval\program\Library\101" does not exist.

Error in contourlet (line 18)
pic = imread(imname,imformat);

Error in pdfbtrainimagethmt (line 22)
coef = contourlet(pyrfilter, dirfilter, levndir, imname,
imformat);

Error in pdfbcalc_imagekld (line 47)
[model1, dummy] = pdfbtrainimagethmt(image1, imf1, '',
0.01);

Error in pdfbtestall_imagekld (line 35)
[kld((i-1)*N+j), kld2((i-1)*N+j)] = ...

Error in pdfbclassify_texture (line 35)
[kld, kld2] = pdfbtestall_imagekld(qimage, qformat, tdb, tdir,
mdir, N, firsttime);

Error in test (line 18)
kld = pdfbclassify_texture('sample','gif', tdb, LibraryPath,
ModelPath, 1);

I think it is because I did not generate the proper contourlet sub-image for ‘pdfbcalc_imagekld
.m’ when generating the kld distance. I am wondering whether the pdfbtestall_imagekld.m miss the code generating contourlet subimage, or I just did it wrong?

Thank you for your attention to this matter.

Sincerely
Bruce Wen

07 Mar 2013 Bruce Wen

hi, Duncan Po. I was trying to use your toolbox to analyse a image

12 Mar 2012 Duncan Po

Hi Huang Xiaoxia,
I believe you are using a C compiler? You need a C++ compiler. .cc files are C++ source code.

11 Mar 2012 huang xiaoxia

how to compiler the *.cc files?I compilered the *.cc files as the readme file tell us to do,but there are erros-Command line warning D4024 : unrecognized source file type 'pdfbcalc_KLD.cc', object file assumed
Command line warning D4027 : source file 'pdfbcalc_KLD.cc' ignored
Command line warning D4021 : no action performed

D:\MATLAB7.0\BIN\WIN32\MEX.PL: Error: Compile of 'pdfbcalc_KLD.cc' failed.

??? Error using ==> mex
Unable to complete successfully

Contact us