Description: Image features used in a Dense Sift, by the Bag of Words bag model to describe the word, of course, the training set is generally used to build the dictionary, because we do not test set. Although the test set is used as the test you, but who knows the practical application of the test image is valid, so I am here to build BoW dictionary only the training set.
In fact, BoW idea is very simple, although many people have asked me, but as long as you understand how to build a dictionary and how to image map to the dictionary D up on the line, and interviews are often asked me this question, do not know you all how to use vivid language to describe this problem?
After complete description of the image with BoW, refers to the training set and test set of images are described with the BoW model, the training of SVM classification model can be classified.
Apart from having to use the RBF kernel SVM, but also their own definition of a nuclear: histogram intersection kernel, histogram
To Search:
File list (Check if you may need any files):
PG_BOW_DEMO
...........\BOW
...........\...\CalculateDictionary.m
...........\...\CompilePyramid.m
...........\...\do_assignment.m
...........\...\do_classification_inter_svm.m
...........\...\do_classification_rbf_svm.m
...........\...\do_normalize.m
...........\...\do_p_classification__inter_svm.m
...........\...\do_p_classification__rbf_svm.m
...........\...\draw_cm.m
...........\...\EuclideanDistance.m
...........\...\find_grid.m
...........\...\find_sift_grid.m
...........\...\GenerateSiftDescriptors.m
...........\...\hist_isect.m
...........\...\hist_isect_c.c
...........\...\hist_isect_c.mexw32
...........\...\load_image.m
...........\...\MakeDataDirectory.m
...........\...\make_dir.m
...........\...\normalize_sift.m
...........\...\num2string.m
...........\...\read_image_db.m
...........\...\rotateXLabels.m
...........\...\show_results_script.m
...........\...\sumnormalize.m
...........\images
...........\......\testing
...........\......\.......\Phoning
...........\......\.......\.......\Phoning_0041.jpg
...........\......\.......\.......\Phoning_0042.jpg
...........\......\.......\.......\Phoning_0043.jpg
...........\......\.......\.......\Phoning_0044.jpg
...........\......\.......\.......\Phoning_0045.jpg
...........\......\.......\.......\Phoning_0046.jpg
...........\......\.......\.......\Phoning_0047.jpg
...........\......\.......\.......\Phoning_0048.jpg
...........\......\.......\.......\Phoning_0049.jpg
...........\......\.......\.......\Phoning_0050.jpg
...........\......\.......\.......\Phoning_0051.jpg
...........\......\.......\.......\Phoning_0052.jpg
...........\......\.......\.......\Phoning_0053.jpg
...........\......\.......\.......\Phoning_0054.jpg
...........\......\.......\.......\Phoning_0055.jpg
...........\......\.......\.......\Phoning_0056.jpg
...........\......\.......\.......\Phoning_0057.jpg
...........\......\.......\.......\Phoning_0058.jpg
...........\......\.......\.......\Phoning_0059.jpg
...........\......\.......\.......\Phoning_0060.jpg
...........\......\.......\PlayingGuitar
...........\......\.......\.............\PlayingGuitar_0041.jpg
...........\......\.......\.............\PlayingGuitar_0042.jpg
...........\......\.......\.............\PlayingGuitar_0043.jpg
...........\......\.......\.............\PlayingGuitar_0044.jpg
...........\......\.......\.............\PlayingGuitar_0045.jpg
...........\......\.......\.............\PlayingGuitar_0046.jpg
...........\......\.......\.............\PlayingGuitar_0047.jpg
...........\......\.......\.............\PlayingGuitar_0048.jpg
...........\......\.......\.............\PlayingGuitar_0049.jpg
...........\......\.......\.............\PlayingGuitar_0050.jpg
...........\......\.......\.............\PlayingGuitar_0051.jpg
...........\......\.......\.............\PlayingGuitar_0052.jpg
...........\......\.......\.............\PlayingGuitar_0053.jpg
...........\......\.......\.............\PlayingGuitar_0054.jpg
...........\......\.......\.............\PlayingGuitar_0055.jpg
...........\......\.......\.............\PlayingGuitar_0056.jpg
...........\......\.......\.............\PlayingGuitar_0057.jpg
...........\......\.......\.............\PlayingGuitar_0058.jpg
...........\......\.......\.............\PlayingGuitar_0059.jpg
...........\......\.......\.............\PlayingGuitar_0060.jpg
...........\......\.......\RidingBike
...........\......\.......\..........\RidingBike_0041.jpg
...........\......\.......\..........\RidingBike_0042.jpg
...........\......\.......\..........\RidingBike_0043.jpg
...........\......\.......\..........\RidingBike_0044.jpg
...........\......\.......\..........\RidingBike_0045.jpg
...........\......\.......\..........\RidingBike_0046.jpg
...........\......\.......\..........\RidingBike_0047.jpg
...........\......\.......\..........\RidingBike_0048.jpg
...........\......\.......\..........\RidingBike_0049.jpg
...........\......\.......\..........\RidingBike_0050.jpg
...........\......\.......\..........\RidingBike_0051.jpg
...........\......\.......\..........\RidingBike_0052.jpg
...........\......\.....