PG_BOW_DEMO-master

所属分类:matlab编程
开发工具:matlab
文件大小:3470KB
下载次数:26
上传日期:2016-04-27 21:51:45
上 传 者dadalang0511
说明:  丕子大神的BOW模型svm示例,可以用来实现自己的图片分类程序
(svm example BOW model Pi child Great God, can be used to implement your own image classification procedures)

文件列表:
BOW (0, 2016-01-10)
BOW\CalculateDictionary.m (3709, 2016-01-10)
BOW\CompilePyramid.m (3260, 2016-01-10)
BOW\EuclideanDistance.m (1303, 2016-01-10)
BOW\GenerateSiftDescriptors.m (2654, 2016-01-10)
BOW\MakeDataDirectory.m (569, 2016-01-10)
BOW\do_assignment.m (2384, 2016-01-10)
BOW\do_classification_inter_svm.m (1882, 2016-01-10)
BOW\do_classification_rbf_svm.m (1416, 2016-01-10)
BOW\do_normalize.m (875, 2016-01-10)
BOW\do_p_classification_inter_svm.m (2307, 2016-01-10)
BOW\do_p_classification_rbf_svm.m (1385, 2016-01-10)
BOW\draw_cm.m (654, 2016-01-10)
BOW\find_grid.m (436, 2016-01-10)
BOW\find_sift_grid.m (4155, 2016-01-10)
BOW\hist_isect.m (729, 2016-01-10)
BOW\hist_isect_c.c (3119, 2016-01-10)
BOW\load_image.m (146, 2016-01-10)
BOW\make_dir.m (213, 2016-01-10)
BOW\normalize_sift.m (632, 2016-01-10)
BOW\num2string.m (309, 2016-01-10)
BOW\read_image_db.m (253, 2016-01-10)
BOW\rotateXLabels.m (13971, 2016-01-10)
BOW\show_results_script.m (551, 2016-01-10)
BOW\sumnormalize.m (231, 2016-01-10)
LBP (0, 2016-01-10)
LBP\getmapping.m (2662, 2016-01-10)
LBP\lbp.m (5835, 2016-01-10)
images (0, 2016-01-10)
images\testing (0, 2016-01-10)
images\testing\Phoning (0, 2016-01-10)
images\testing\Phoning\Phoning_0041.jpg (7711, 2016-01-10)
images\testing\Phoning\Phoning_0042.jpg (5900, 2016-01-10)
images\testing\Phoning\Phoning_0043.jpg (7294, 2016-01-10)
images\testing\Phoning\Phoning_0044.jpg (5867, 2016-01-10)
images\testing\Phoning\Phoning_0045.jpg (8424, 2016-01-10)
images\testing\Phoning\Phoning_0046.jpg (8039, 2016-01-10)
... ...

======================================================================== Image Classification using Bag of Words and Spatial Pyramid BoW Created by Piji Li Email: pagelee.sd@gmail.com Blog: http://www.zhizhihu.com Weibo: http://www.weibo.com/pagecn 10/24/2011 Some code are from: S. Lazebnik, C. Schmid, and J. Ponce, "Beyond Bags of Features: Spatial Pyramid Matching for Recognizing Natural Scene Categories," CVPR 2006. ======================================================================== Use: 1, follow labes/readme to prepare data 2, go to libsvm/: make 3, modify ini.m: rootpath=your demo path, and then run main.m. The BOW and Dictionary is in the dir:/data/global, size of BOW_sift.mat is (DictionarySize * #images). Size of dictionary.mat is (DictionarySize * dim of features).spatial_pyramid.mat is the Spatial Pyramid BoW. In /data/local is the sift features for each images. ======================================================================== Classification using BOW rbf_svm Accuracy = 76.6667% (92/120) (classification) Classification using histogram intersection kernel svm Accuracy = 81.6667% (***/120) (classification) Classification using Pyramid BOW rbf_svm Accuracy = 82.5% (99/120) (classification) Classification using Pyramid BOW histogram intersection kernel svm Accuracy = 90% (108/120) (classification) ======================================================================== Idea from: S. Lazebnik, C. Schmid, and J. Ponce, "Beyond Bags of Features: Spatial Pyramid Matching for Recognizing Natural Scene Categories," CVPR 2006. Images from: Piji Li, Jun Ma, Shuai Gao. Actions in Still Web Images: Visualization, Detection and Retrieval. The 12th International Conference on Web-Age InformationManagement (WAIM 2011). Springer, 2011. SVM from: Chih-Chung Chang and Chih-Jen Lin, LIBSVM : a library for support vector machines. ACM Transactions on Intelligent Systems and Technology, 2:27:1--27:27, 2011. Software available at http://www.csie.ntu.edu.tw/~cjlin/libsvm

近期下载者

相关文件


收藏者