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

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

Calculates all decomposition coefficients for the input object using the previously calculated eigen objects basis and the averaged object
public static cvEigenDecomposite ( IntPtr obj, IntPtr eigInput, IntPtr avg ) : float[]
obj IntPtr Input object (Pointer to IplImage)
eigInput IntPtr Pointer to the array of IplImage input objects
avg IntPtr Averaged object (Pointer to IplImage)
Результат float[]
        public static float[] cvEigenDecomposite(
         IntPtr obj,
         IntPtr[] eigInput,
         IntPtr avg)
        {
            float[] coeffs = new float[eigInput.Length];
             cvEigenDecomposite(
             obj,
             eigInput.Length,
             eigInput,
             CvEnum.EIGOBJ_TYPE.CV_EIGOBJ_NO_CALLBACK,
             IntPtr.Zero,
             avg,
             coeffs);
             return coeffs;
        }

Same methods

CvInvoke::cvEigenDecomposite ( IntPtr obj, int eigenvecCount, IntPtr eigInput, CvEnum ioFlags, IntPtr userData, IntPtr avg, float coeffs ) : void

Usage Example

 /// <summary>
 /// Decompose the image as eigen values, using the specific eigen vectors
 /// </summary>
 /// <param name="src">The image to be decomposed</param>
 /// <param name="eigenImages">The eigen images</param>
 /// <param name="avg">The average images</param>
 /// <returns>Eigen values of the decomposed image</returns>
 public static float[] EigenDecomposite(Image <Gray, Byte> src, Image <Gray, Single>[] eigenImages, Image <Gray, Single> avg)
 {
     return(CvInvoke.cvEigenDecomposite(
                src.Ptr,
                Array.ConvertAll <Image <Gray, Single>, IntPtr>(eigenImages, delegate(Image <Gray, Single> img) { return img.Ptr; }),
                avg.Ptr));
 }
All Usage Examples Of Emgu.CV.CvInvoke::cvEigenDecomposite
CvInvoke