Package boofcv.factory.flow
Class FactoryDenseOpticalFlow
java.lang.Object
boofcv.factory.flow.FactoryDenseOpticalFlow
Creates implementations of
DenseOpticalFlow
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ImageGray<T>>
DenseOpticalFlow<T>broxWarping
(@Nullable ConfigBroxWarping config, Class<T> imageType) static <I extends ImageGray<I>,
D extends ImageGray<D>>
DenseOpticalFlow<I>flowKlt
(@Nullable ConfigPKlt configKlt, int radius, Class<I> inputType, Class<D> derivType) Compute optical flow usingPyramidKltTracker
.static <T extends ImageGray<T>,
D extends ImageGray<D>>
DenseOpticalFlow<T>hornSchunck
(@Nullable ConfigHornSchunck config, Class<T> imageType) The original Horn-Schunck algorithm.static <T extends ImageGray<T>>
DenseOpticalFlow<T>hornSchunckPyramid
(@Nullable ConfigHornSchunckPyramid config, Class<T> imageType) Creates an instance ofHornSchunckPyramid
static <T extends ImageGray<T>>
DenseOpticalFlow<T>region
(@Nullable ConfigOpticalFlowBlockPyramid config, Class<T> imageType) Creates a pyramidal block
-
Constructor Details
-
FactoryDenseOpticalFlow
public FactoryDenseOpticalFlow()
-
-
Method Details
-
flowKlt
public static <I extends ImageGray<I>,D extends ImageGray<D>> DenseOpticalFlow<I> flowKlt(@Nullable @Nullable ConfigPKlt configKlt, int radius, Class<I> inputType, Class<D> derivType) Compute optical flow usingPyramidKltTracker
.- Type Parameters:
I
- Input image type.D
- Derivative image type.- Parameters:
configKlt
- Configuration for KLT. If null then default values are used.radius
- Radius of square region.inputType
- Type of input image.derivType
- Type of derivative image. If null then default is used.- Returns:
- DenseOpticalFlow
- See Also:
-
region
public static <T extends ImageGray<T>> DenseOpticalFlow<T> region(@Nullable @Nullable ConfigOpticalFlowBlockPyramid config, Class<T> imageType) Creates a pyramidal block- Parameters:
config
- Configuration for block pyramid- See Also:
-
hornSchunck
public static <T extends ImageGray<T>,D extends ImageGray<D>> DenseOpticalFlow<T> hornSchunck(@Nullable @Nullable ConfigHornSchunck config, Class<T> imageType) The original Horn-Schunck algorithm. Only good for very small motions.- Parameters:
config
- Configuration parameters. If null then default is used.imageType
- Type of input gray scale image- Returns:
- dense optical flow
- See Also:
-
hornSchunckPyramid
public static <T extends ImageGray<T>> DenseOpticalFlow<T> hornSchunckPyramid(@Nullable @Nullable ConfigHornSchunckPyramid config, Class<T> imageType) Creates an instance ofHornSchunckPyramid
- Parameters:
config
- Configuration parameters. If null defaults will be used.- Returns:
- Dense optical flow implementation of HornSchunckPyramid
- See Also:
-
broxWarping
public static <T extends ImageGray<T>> DenseOpticalFlow<T> broxWarping(@Nullable @Nullable ConfigBroxWarping config, Class<T> imageType)
-