trainImageCategoryClassifier
Train an image category classifier
Syntax
Description
returns
an image category classifier. The classifier contains the number of
categories and the category labels for the input classifier
= trainImageCategoryClassifier(imds
,bag
)imds
images.
The function trains a support vector machine (SVM) multiclass classifier
using the input bag
, a bagOfFeatures
object.
You must have a Statistics and Machine Learning Toolbox™ license to use this function.
This function supports parallel computing using multiple MATLAB® workers. Enable parallel computing using the Computer Vision Toolbox Preferences dialog. To open Computer Vision Toolbox™ preferences, on the Home tab, in the Environment section, click Preferences. Select Computer Vision Toolbox.
returns a classifier
= trainImageCategoryClassifier(imds
,bag
,Name,Value
)classifier
object with optional input
properties specified by one or more Name,Value
pair
arguments.
Examples
Input Arguments
Output Arguments
References
[1] Csurka, G., C. R. Dance, L. Fan, J. Willamowski, and C. Bray Visual Categorization with Bag of Keypoints, Workshop on Statistical Learning in Computer Vision, ECCV 1 (1-22), 1-2.
Extended Capabilities
Version History
Introduced in R2014b
See Also
imageSet
| bagOfFeatures
| imageCategoryClassifier
| fitcecoc
(Statistics and Machine Learning Toolbox) | templateSVM
(Statistics and Machine Learning Toolbox)