Bag of visual words object
Manage your image collections and partition them into training and validation sets. You can construct a bag of visual words for use in image category classification. The training and classification includes support for Parallel Computing Toolbox™.
bag = bagOfFeatures(
returns a
bag of features object. The imds
)bag
output object is generated
using samples from the imds
input. By default, the visual
vocabulary is created from SURF features extracted from images in
imds
.
bag = bagOfFeatures(
returns a bag of features that uses a custom feature extractor function to
extract features from images in imds
,'CustomExtractor
',extractorFcn
)imds
.
extractorFcn
is a function handle to a custom feature
extraction function.
bag = bagOfFeatures(
sets properties using one or more name-value pairs. Enclose each property name
in quotes. For example, imds
,Name,Value
)bag =
bagOfFeatures('Verbose',true)
This object supports parallel computing using multiple MATLAB® workers. Enable parallel computing from the Computer Vision Toolbox Preferences dialog box. To open Computer Vision Toolbox™ preferences, on the Home tab, in the Environment section, click Preferences. Then select Computer Vision Toolbox.
encode | Create histogram of visual word occurrences |