Package boofcv.alg.flow
Class DenseOpticalFlowKlt<I extends ImageGray<I>,D extends ImageGray<D>>
java.lang.Object
boofcv.alg.flow.DenseOpticalFlowKlt<I,D>
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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'void
process
(ImagePyramid<I> prev, D[] prevDerivX, D[] prevDerivY, ImagePyramid<I> curr, ImageFlow output)
-
Constructor Details
-
DenseOpticalFlowKlt
-
-
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'
-