core_PCA_backProject() private method

private core_PCA_backProject ( IntPtr obj, IntPtr vec ) : IntPtr
obj IntPtr
vec IntPtr
return IntPtr
コード例 #1
0
        /// <summary>
        /// reconstructs the original vector from the projection
        /// </summary>
        /// <param name="vec"></param>
        /// <returns></returns>
        public Mat BackProject(InputArray vec)
        {
            if (disposed)
            {
                throw new ObjectDisposedException("PCA");
            }
            if (vec == null)
            {
                throw new ArgumentNullException("vec");
            }
            vec.ThrowIfDisposed();
            IntPtr ret = NativeMethods.core_PCA_backProject(ptr, vec.CvPtr);

            return(new Mat(ret));
        }
コード例 #2
0
 /// <summary>
 /// reconstructs the original vector from the projection
 /// </summary>
 /// <param name="vec"></param>
 /// <param name="result"></param>
 public void BackProject(InputArray vec, OutputArray result)
 {
     if (disposed)
     {
         throw new ObjectDisposedException("PCA");
     }
     if (vec == null)
     {
         throw new ArgumentNullException("vec");
     }
     if (result == null)
     {
         throw new ArgumentNullException("result");
     }
     vec.ThrowIfDisposed();
     result.ThrowIfNotReady();
     NativeMethods.core_PCA_backProject(ptr, vec.CvPtr, result.CvPtr);
     result.Fix();
 }