Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackie840129 authored Jul 8, 2018
1 parent 633c6a8 commit 3a4013e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Lab_2/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,12 @@ dimension of its descriptor. Use **k-means algorithm** to divide these interest
C clusters (you may simply choose C = 50 and maximum number of iterations = 500
for simplicity, and use n_jobs=-1 to accelerate). The centroid of each cluster then indicates a visual word.

**Note** : The threshold of SURF is up to you, but you have to ensure that every image has at least one feature point.
**Note** : save the 50 visual words to the binary file [visual_words.npy] with numpy serialization saving method.
**Note** : The threshold of SURF is up to you, but you have to ensure that every image has at least one feature point.

  **Note** : save the 50 visual words to the binary file [visual_words.npy] with numpy serialization saving method.

**hint** : `kmeans.cluster_centers_` is useful

3. With the derived dictionary of visual words, you can now represent each training and test image as BoW features. When encoding the interest points into BoW, three different strategies will be considered: **Hard-Sum**, **Soft-Sum**, and **Soft-Max**, as we detail below:

<img src="./image/BOW.png" alt="bow"/>
Expand Down

0 comments on commit 3a4013e

Please sign in to comment.