/// <summary>
/// Sets a visual vocabulary.
/// </summary>
/// <param name="vocabulary">Vocabulary (can be trained using the inheritor of BOWTrainer ).
/// Each row of the vocabulary is a visual word(cluster center).</param>
public void SetVocabulary(Mat vocabulary)
{
ThrowIfDisposed();
if (vocabulary == null)
{
throw new ArgumentNullException(nameof(vocabulary));
}
NativeMethods.features2d_BOWImgDescriptorExtractor_setVocabulary(ptr, vocabulary.CvPtr);
GC.KeepAlive(vocabulary);
}