/// <summary> /// Release the unmanaged resource associated with the BruteForceMatcher /// </summary> protected override void DisposeObject() { BruteForceMatcherInvoke.CvBruteForceMatcherRelease(ref _ptr); }
/// <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); }