Emgu.CV.OpticalFlow.BM C# (CSharp) Метод

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

Calculates optical flow for overlapped blocks block_size.width * block_size.height pixels each, thus the velocity fields are smaller than the original images. For every block in prev the functions tries to find a similar block in curr in some neighborhood of the original block or shifted by (velx(x0,y0),vely(x0,y0)) block as has been calculated by previous function call (if use_previous)
public static BM ( Byte>.Image prev, Byte>.Image curr, Size blockSize, Size shiftSize, Size maxRange, bool usePrevious, Single>.Image velx, Single>.Image vely ) : void
prev Byte>.Image First image
curr Byte>.Image Second image
blockSize System.Drawing.Size Size of basic blocks that are compared.
shiftSize System.Drawing.Size Block coordinate increments.
maxRange System.Drawing.Size Size of the scanned neighborhood in pixels around block.
usePrevious bool Uses previous (input) velocity field.
velx Single>.Image Horizontal component of the optical flow of floor((prev->width - block_size.width)/shiftSize.width) x floor((prev->height - block_size.height)/shiftSize.height) size.
vely Single>.Image Vertical component of the optical flow of the same size velx.
Результат void
        public static void BM(
         Image<Gray, Byte> prev,
         Image<Gray, Byte> curr,
         Size blockSize,
         Size shiftSize,
         Size maxRange,
         bool usePrevious,
         Image<Gray, Single> velx,
         Image<Gray, Single> vely)
        {
            CvInvoke.cvCalcOpticalFlowBM(prev, curr, blockSize, shiftSize, maxRange, usePrevious, velx, vely);
        }