features2d_BOWKMeansTrainer_cluster1() private method

private features2d_BOWKMeansTrainer_cluster1 ( IntPtr obj ) : IntPtr
obj IntPtr
return IntPtr
示例#1
0
 /// <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));
 }
示例#2
0
        /// <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));
        }