First, we compute for the mean features of a class by taking 5 images of objects belonging to one class and extracting features from it. The mean feature vector of a class is the matrix containing the average of the quantified features for the class.
I used four different objects (that is, four classes) with 5 training samples and 5 test samples.
Training sets for the coin, post, card, and leaf classes. |
So now we examine different objects and classify them by determining the mean feature vector it is nearest to.
Test objects. |
We can use the Euclidean distance
to determine the class. x is the feature vector of the test sample and m is the mean feature vector. The results are shown below. Each row indicates the test object and each column indicates the mean feature vector for the four classes. The values are the distances computed using the equation for the Euclidean distance. The minimum distance for each row would indicate the class to where the object belongs (highlighted in yellow).
Everything was classified correctly yay! :D |
___________________________________________________________________________
I'm giving myself a 10 for 100% correct classification. :D
No comments:
Post a Comment