/// <summary> /// The constructor. /// </summary> /// <param name="dmatcher">Descriptor matcher that is used to find the nearest word of the trained vocabulary for each keypoint descriptor of the image.</param> public BOWImgDescriptorExtractor(DescriptorMatcher dmatcher) { if (dmatcher == null) { throw new ArgumentNullException(nameof(dmatcher)); } ptr = NativeMethods.features2d_BOWImgDescriptorExtractor_new2(dmatcher.PtrObj); }