I want to generate training data using LIBSVM and HOG within MatLab.
I have computed the HOG Descriptor for one image which is 3780 x 1 (double) short snippet:
0
0
0.0181
0.7746
0
0
0
0
0.4692
0.5279
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0.4692
0.5279
0.0016
0.0018
0.2826
0.2535
0
0
0.2728
0.0451
0
0
0.1788
0.0209
0
0
0.0501
0.0059
0
0
0.1320
0.0137
which I assume is the training_instance_matrix:
svmtrain(training_label_vector, training_instance_matrix [, 'libsvm_options']);
How do I classify the elements in this vector to generate
training_label_vector
?
training_label_vectorcould be a binary vector saying to which group belongs each sample. Reference: cs229.stanford.edu/notes/cs229-notes3.pdf - tashuhkatraining_instance_matrixI have generated the HOG Descriptor of one image which is a 3780 x 1 feature descriptor vector - my problem is I don't know how to classify the elements. - Gwenjitraining_instance_matrix. I then have a matrix size 1 x 3780 containing 1s and 0s for mytraining_label_vector- 1s if the first image is a human, 0 if not? - Gwenji