features2d_BOWImgDescriptorExtractor_setVocabulary() private méthode

private features2d_BOWImgDescriptorExtractor_setVocabulary ( IntPtr obj, IntPtr vocabulary ) : void
obj IntPtr
vocabulary IntPtr
Résultat void
 /// <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);
 }
 /// <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)
 {
     if (IsDisposed)
     {
         throw new ObjectDisposedException(GetType().Name);
     }
     if (vocabulary == null)
     {
         throw new ArgumentNullException(nameof(vocabulary));
     }
     NativeMethods.features2d_BOWImgDescriptorExtractor_setVocabulary(ptr, vocabulary.CvPtr);
     GC.KeepAlive(vocabulary);
 }