Emgu.CV.CvInvoke.cvEigenProjection C# (CSharp) Метод

cvEigenProjection() публичный статический Метод

Calculates an object projection to the eigen sub-space or, in other words, restores an object using previously calculated eigen objects basis, averaged object, and decomposition coefficients of the restored object.
public static cvEigenProjection ( IntPtr inputVecs, float coeffs, IntPtr avg, IntPtr proj ) : void
inputVecs IntPtr Pointer to either an array of IplImage input objects or to a callback function, depending on io_flags
coeffs float Previously calculated decomposition coefficients
avg IntPtr Average vector
proj IntPtr Projection to the eigen sub-space
Результат void
        public static void cvEigenProjection(
         IntPtr[] inputVecs,
         float[] coeffs,
         IntPtr avg,
         IntPtr proj)
        {
            CvInvoke.cvEigenProjection(
             inputVecs,
             inputVecs.Length,
             CvEnum.EIGOBJ_TYPE.CV_EIGOBJ_NO_CALLBACK,
             IntPtr.Zero,
             coeffs,
             avg,
             proj);
        }

Same methods

CvInvoke::cvEigenProjection ( IntPtr inputVecs, int eigenvecCount, CvEnum ioFlags, IntPtr userdata, float coeffs, IntPtr avg, IntPtr proj ) : void

Usage Example

Пример #1
0
        /// <summary>
        /// Given the eigen value, reconstruct the projected image
        /// </summary>
        /// <param name="eigenValue">The eigen values</param>
        /// <returns>The projected image</returns>
        public Image <Gray, byte> EigenProjection(float[] eigenValue)
        {
            Image <Gray, byte> res = new Image <Gray, byte>(AverageImage.Width, AverageImage.Height);
            var inputVecs          = Array.ConvertAll(EigenImages, (Image <Gray, float> img) => img.Ptr);

            CvInvoke.cvEigenProjection(inputVecs, eigenValue, AverageImage.Ptr, res.Ptr);
            return(res);
        }
All Usage Examples Of Emgu.CV.CvInvoke::cvEigenProjection
CvInvoke