Class DenseOpticalFlowKlt<I extends ImageGray<I>,D extends ImageGray<D>>

java.lang.Object
boofcv.alg.flow.DenseOpticalFlowKlt<I,D>

public class DenseOpticalFlowKlt<I extends ImageGray<I>,D extends ImageGray<D>> extends Object
Computes the dense optical flow using KltTracker. A feature is computed from each pixel in the prev image and it is tracked into the curr image. The flow assigned to a pixel is the template with the lowest error which overlaps it. In other words, a pixel is assigned the flow with the lowest error with in 'radius' pixels of it. A pixel is marked as invalid if all tracks around the pixel fail.
  • Constructor Details

    • DenseOpticalFlowKlt

      public DenseOpticalFlowKlt(PyramidKltTracker<I,D> tracker, int radius)
  • Method Details

    • process

      public void process(ImagePyramid<I> prev, D[] prevDerivX, D[] prevDerivY, ImagePyramid<I> curr, ImageFlow output)
    • checkNeighbors

      protected void checkNeighbors(int cx, int cy, float score, float flowX, float flowY, ImageFlow output)
      Examines every pixel inside the region centered at (cx,cy) to see if their optical flow has a worse score the one specified in 'flow'