/// <summary> /// Clusters train descriptors. /// </summary> /// <returns></returns> public override Mat Cluster() { ThrowIfDisposed(); NativeMethods.HandleException( NativeMethods.features2d_BOWKMeansTrainer_cluster1(ptr, out var p)); GC.KeepAlive(this); return(new Mat(p)); }
/// <summary> /// Clusters train descriptors. /// </summary> /// <returns></returns> public override Mat Cluster() { if (IsDisposed) { throw new ObjectDisposedException(GetType().Name); } IntPtr p = NativeMethods.features2d_BOWKMeansTrainer_cluster1(ptr); return(new Mat(p)); }