Ejemplo n.º 1
0
 /// <summary>
 /// Release all the unmanaged memory associated with this object
 /// </summary>
 protected override void DisposeObject()
 {
     BOWImgDescriptorExtractorInvoke.CvBOWImgDescriptorExtractorRelease(ref _ptr);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Computes an image descriptor using the set visual vocabulary.
 /// </summary>
 /// <param name="image">Image, for which the descriptor is computed</param>
 /// <param name="keypoints">Key points detected in the input image.</param>
 /// <param name="imgDescriptors">The output image descriptors.</param>
 public void Compute(IInputArray image, VectorOfKeyPoint keypoints, Mat imgDescriptors)
 {
     using (InputArray iaImage = image.GetInputArray())
         BOWImgDescriptorExtractorInvoke.CvBOWImgDescriptorExtractorCompute(_ptr, iaImage, keypoints, imgDescriptors);
 }
Ejemplo n.º 3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="descriptorExtractor">Descriptor extractor that is used to compute descriptors for an input image and its key points.</param>
 /// <param name="descriptorMatcher">Descriptor matcher that is used to find the nearest word of the trained vocabulary for each key point descriptor of the image.</param>
 public BOWImgDescriptorExtractor(IDescriptorExtractor descriptorExtractor, DescriptorMatcher descriptorMatcher)
 {
     _ptr = BOWImgDescriptorExtractorInvoke.CvBOWImgDescriptorExtractorCreate(descriptorExtractor.DescriptorExtratorPtr, descriptorMatcher);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Sets a visual vocabulary.
 /// </summary>
 /// <param name="vocabulary">The vocabulary</param>
 public void SetVocabulary(Mat vocabulary)
 {
     BOWImgDescriptorExtractorInvoke.CvBOWImgDescriptorExtractorSetVocabulary(_ptr, vocabulary);
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="descriptorExtractor">Descriptor extractor that is used to compute descriptors for an input image and its key points.</param>
 /// <param name="descriptorMatcher">Descriptor matcher that is used to find the nearest word of the trained vocabulary for each key point descriptor of the image.</param>
 public BOWImgDescriptorExtractor(Feature2D descriptorExtractor, DescriptorMatcher descriptorMatcher)
 {
     _ptr = BOWImgDescriptorExtractorInvoke.CvBOWImgDescriptorExtractorCreate(descriptorExtractor.Feature2DPtr, descriptorMatcher);
 }