/// <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)); }
/// <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(); }