示例#1
0
 /// <summary>
 /// Release the unmanaged resource associated with the BruteForceMatcher
 /// </summary>
 protected override void DisposeObject()
 {
     BruteForceMatcherInvoke.CvBruteForceMatcherRelease(ref _ptr);
 }
示例#2
0
 /// <summary>
 /// Create a BruteForceMatcher of the specific distance type
 /// </summary>
 /// <param name="distanceType">The distance type</param>
 /// <param name="crossCheck">Specify whether or not cross check is needed. Use false for default.</param>
 public BruteForceMatcher(DistanceType distanceType, bool crossCheck)
 {
     _distanceType = distanceType;
     _ptr          = BruteForceMatcherInvoke.CvBruteForceMatcherCreate(_distanceType, crossCheck);
 }