mrfdemo

所属分类:图形图像处理
开发工具:Visual C++
文件大小:9092KB
下载次数:30
上传日期:2008-12-19 01:12:09
上 传 者kkccoo
说明:  markov random fields, segmentation codes

文件列表:
mrfdemo\MRFdemo\images\trin-3.bmp (33792, 2004-04-19)
mrfdemo\MRFdemo\images\trin-3.pgm (16399, 2004-04-19)
mrfdemo\MRFdemo\images\trin.bmp (2530, 2004-04-19)
mrfdemo\MRFdemo\images\trin.pgm (16399, 2004-04-19)
mrfdemo\MRFdemo\images\trin0.bmp (33780, 2004-04-19)
mrfdemo\MRFdemo\images\trin0.pgm (16399, 2004-04-19)
mrfdemo\MRFdemo\images\trin13.bmp (33458, 2004-04-19)
mrfdemo\MRFdemo\images\trin13.pgm (16399, 2004-04-19)
mrfdemo\MRFdemo\images\trin3.bmp (33764, 2004-04-19)
mrfdemo\MRFdemo\images\trin3.pgm (16399, 2004-04-19)
mrfdemo\MRFdemo\images\trin5.bmp (33702, 2004-04-19)
mrfdemo\MRFdemo\images\trin5.pgm (16399, 2004-04-19)
mrfdemo\MRFdemo\linux\makefile (1926, 2005-01-13)
mrfdemo\MRFdemo\linux\mrfdemo (103860, 2005-02-15)
mrfdemo\MRFdemo\src\CKProcessTimeCounter.cpp (6021, 2004-12-13)
mrfdemo\MRFdemo\src\CKProcessTimeCounter.h (1564, 2004-12-13)
mrfdemo\MRFdemo\src\mersenne.cpp (5240, 2008-05-15)
mrfdemo\MRFdemo\src\mrf.cpp (31335, 2008-05-12)
mrfdemo\MRFdemo\src\randomc.h (6605, 2004-11-29)
mrfdemo\MRFdemo\windows\mrfdemo.dsp (4673, 2005-01-14)
mrfdemo\MRFdemo\windows\mrfdemo.dsw (539, 2005-01-14)
mrfdemo\MRFdemo\windows\mrfdemo.ncb (22932480, 2008-09-26)
mrfdemo\MRFdemo\windows\mrfdemo.opt (58880, 2005-01-14)
mrfdemo\MRFdemo\windows\mrfdemo.plg (2993, 2005-01-14)
mrfdemo\MRFdemo\windows\mrfdemo.sln (874, 2008-05-06)
mrfdemo\MRFdemo\windows\mrfdemo.suo (25600, 2008-09-26)
mrfdemo\MRFdemo\windows\mrfdemo.vcproj (7757, 2008-05-11)
mrfdemo\MRFdemo\windows\mrfdemo.vcproj.SPARROW.idea.user (1417, 2008-09-26)
mrfdemo\MRFdemo\windows\UpgradeLog.XML (4449, 2008-05-06)
mrfdemo\MRFdemo\windows\_UpgradeReport_Files\UpgradeReport.css (3348, 2008-05-06)
mrfdemo\MRFdemo\windows\_UpgradeReport_Files\UpgradeReport.xslt (12579, 2007-06-27)
mrfdemo\MRFdemo\windows\_UpgradeReport_Files\UpgradeReport_Minus.gif (69, 2008-05-06)
mrfdemo\MRFdemo\windows\_UpgradeReport_Files\UpgradeReport_Plus.gif (71, 2008-05-06)
mrfdemo\MRFdemo\windows\Debug (0, 2008-05-15)
mrfdemo\MRFdemo\windows\Release (0, 2005-02-15)
mrfdemo\MRFdemo\windows\_UpgradeReport_Files (0, 2008-05-06)
mrfdemo\MRFdemo\images (0, 2005-02-14)
mrfdemo\MRFdemo\linux (0, 2005-02-15)
... ...

~This is the sample implementation of a Markov random field (MRF) based image segmentation algorithm. The main code (mrf.cpp) has been written by Csaba Gradwohl (Gradwohl.Csaba@stud.u-szeged.hu) with some minor contributions from Zoltan Kato (kato@inf.u-szeged.hu, http://www.inf.u-szeged.hu/~kato/). This code is released under the GNU General Public License (see http://www.gnu.org/copyleft/gpl.html). Please acknowledge the use of our program by refering to the following papers (they contain detailed information about the MRF model and optimization algorithms): 1) M. Berthod, Z. Kato, S. Yu, J. Zerubia: Bayesian image classification using Markov random fields. Image and Vision Computing, 14(1996): 285-295, 1996. 2) Z. Kato: Multi-scale Markovian Modelisation in Computer Vision with Applications to SPOT Image Segmentation. PhD thesis, INRIA Sophia Antipolis, France, 1994. 3) Z. Kato, J. Zerubia and M. Berthod: Satellite image classification using a modified Metropolis dynamics Proc. IEEE International Conf. on Acoust., Speech and Sig. Proc., vol. 3, pp. 573-576, San Francisco, CA, March 23-26, 1992. The program uses the "Mersenne Twister" random number generator written by Agner Fog (http://www.agner.org/random/). The generator itself is described in the article by M. Matsumoto & T. Nishimura, in: ACM Transactions on Modeling and Computer Simulation, vol. 8, no. 1, 19***, pp. 3-30. Details on the initialization scheme can be found at http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html . INSTALLATION: ============= The code is platform independent. We have succesfully compiled it under Linux (RedHat, Fedora, Debian) and Windows (XP, 2003 server). 1) You need wxWindows 2.4.2 or later (http://www.wxwindows.org) 2a) Under Linux/Unix, please edit the makefile and then $ make clean $ make should compile and install the program (it is called mrfdemo). 2b) Under Windows, we provide both VC++6 as well as .NET (VC++7) compatible project files. Open the right "mrfdemo" workspace (resp. solution) file and choose "Batch Build..." from the menu to compile the program. Make sure the environment variable "WXWIN" is set correctly, otherwise you have to modife the project settings. USAGE NOTES: ============ The program works on BMP images. Some test images are provided under the 'images' subdirectory. The program GUI should be intuitive. Main steps: 1) Load an image 2) Enter the number of pixel classes (~region type) 3) Push "Select classes" button 4) Press left mouse button over the input image and draw a rectangle over a representative region of the first class. Then push "Next class" button. The mean and variance should appear in the "Class parameters" window. Continue with the next class until a representative rectangle for all classes has been selected. 5) Set the weight of doubleton potentials (default is 0.9) and the stopping threshold (iterations are stopped when the energy change is less than the specified value). 6) Choose the optimization method from the pull-down list. 7) Adjust the optimization method's parameters: T0 - Initial temperature c - temperature scheduler (T(n+1) = c*T(n)) alpha - MMD's probability threshold 8) Push "Do it >>" button to execute segmentation. 9) Optionally, you can save the segmentation result as a BMP image. During segmentation, the current classification along with the temperature and global energy are displayed at each iteration. At the end, the elapsed CPU time is also displayed (excluding GUI oveheaad!).

近期下载者

相关文件


收藏者