Image Category Classification Using Bag of Features

This example shows how to use a bag of features approach for image category classification. About Dataset 5-Flowers Dataset is used

You are now following this Submission

This example shows how to use a bag of features approach for image category classification. This technique is also often referred to as bag of words. Visual image categorization is a process of assigning a category label to an image under test.
About Dataset
5-Flowers Dataset
The 5-flowers dataset was created by Google and placed in the public domain with a Creative Commons license. It is published as a TensorFlow dataset and available in a public.
There are five types of flowers in the 5-flowers dataset, and each image in the dataset has already been labeled with the type of flower it depicts.
Download and extract the Flowers data set
url = "http://download.tensorflow.org/example_images/flower_photos.tgz";

Cite As

Kunal Khandelwal (2026). Image Category Classification Using Bag of Features (https://uk.mathworks.com/matlabcentral/fileexchange/159371-image-category-classification-using-bag-of-features), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Image Classification with Bag of Visual Words

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0