features2d_BOWImgDescriptorExtractor_setVocabulary() private method

private features2d_BOWImgDescriptorExtractor_setVocabulary ( IntPtr obj, IntPtr vocabulary ) : void
obj IntPtr
vocabulary IntPtr
return void
コード例 #1
0
 /// <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);
 }
コード例 #2
0
 /// <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);
 }