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

cvCalcOpticalFlowLK() приватный Метод

private cvCalcOpticalFlowLK ( IntPtr prev, IntPtr curr, Size winSize, IntPtr velx, IntPtr vely ) : void
prev IntPtr
curr IntPtr
winSize Size
velx IntPtr
vely IntPtr
Результат void
        public static extern void cvCalcOpticalFlowLK(
              IntPtr prev,
              IntPtr curr,
              Size winSize,
              IntPtr velx,
              IntPtr vely);

Usage Example

Пример #1
0
 /// <summary>
 /// Computes flow for every pixel of the first input image using Lucas &amp; Kanade algorithm
 /// </summary>
 /// <param name="prev">First image</param>
 /// <param name="curr">Second image</param>
 /// <param name="winSize">Size of the averaging window used for grouping pixels</param>
 /// <param name="velx">Horizontal component of the optical flow of the same size as input images</param>
 /// <param name="vely">Vertical component of the optical flow of the same size as input images</param>
 public static void LK(
     Image <Gray, Byte> prev,
     Image <Gray, Byte> curr,
     Size winSize,
     Image <Gray, Single> velx,
     Image <Gray, Single> vely)
 {
     CvInvoke.cvCalcOpticalFlowLK(prev.Ptr, curr.Ptr, winSize, velx, vely);
 }
CvInvoke