encode
Create histogram of visual word occurrences
Syntax
Description
returns a feature vector that represents a histogram of visual word occurrences
contained in the input image, featureVector = encode(bag,I)I. The input bag contains the
bagOfFeatures object.
[ optionally
returns the visual words as a featureVector,words]
= encode(bag,I)visualWords object.
The visualWords object stores the visual words
that occur in I and stores the locations of those
words.
returns
a feature vector that represents a histogram of visual word occurrences
contained in featureVector= encode(bag,imds)imds. The input bag contains
the bagOfFeatures object.
[ optionally
returns an array of featureVector,words]
= encode(bag,imds)visualWords occurrences in imds.
The visualWords object stores the visual words
that occur in I and stores the locations of those
words.
[___] = encode(___,
sets properties using one or more name-value pairs. Enclose each property name
in quotes. For example, Name,Value)encode('SparseOutput',false)
This method 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.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2014b