BOW algorithm based on color histogram.
中文教程: https://blog.csdn.net/zxwsbg/article/details/97681139
个人网站: https://zxwsbg.cn
An image retrival method based on Bag-of-words model using color histogram.
Just clone the repo to your own computer and then run it in Matlab. Follow the order run the
.m
program.
-
Convert RGB components to YUV components
-
save 1536*64 matrix for all images
-
Divide a picture into several 8*8 blocks, and tile each 8*8 block into a 1*64 vector
-
Choose a ratio, and then select some of those 1*64 vectors to cluster.
- Use Kmeans to cluster features.
-
Divide the original features into the specific class.
-
Generate the frequency histogram of each image.
-
Calculate the distance between each two images.
-
Sort the distance matrix.
-
Use a image to test.
-
Calculate Presicion-Recall value.
- Fork the reposity
- Create Branch
- Commit your code
- Create Pull Request