OpenCvSharp.NativeMethods.features2d_BOWImgDescriptorExtractor_setVocabulary C# (CSharp) Method

features2d_BOWImgDescriptorExtractor_setVocabulary() private method

private features2d_BOWImgDescriptorExtractor_setVocabulary ( IntPtr obj, IntPtr vocabulary ) : void
obj IntPtr
vocabulary IntPtr
return void
        public static extern void features2d_BOWImgDescriptorExtractor_setVocabulary(IntPtr obj, IntPtr vocabulary);
        [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)]

Usage Example

コード例 #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);
 }
All Usage Examples Of OpenCvSharp.NativeMethods::features2d_BOWImgDescriptorExtractor_setVocabulary
NativeMethods