public class UtilDenseOpticalFlow
extends java.lang.Object
| Constructor and Description |
|---|
UtilDenseOpticalFlow() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends boofcv.struct.image.ImageGray> |
standardPyramid(int width,
int height,
double scale,
double sigma,
int minSize,
int maxLayers,
java.lang.Class<T> imageType)
Create a standard image pyramid used by dense optical flow parameters.
|
public static <T extends boofcv.struct.image.ImageGray> boofcv.struct.pyramid.PyramidFloat<T> standardPyramid(int width,
int height,
double scale,
double sigma,
int minSize,
int maxLayers,
java.lang.Class<T> imageType)
Create a standard image pyramid used by dense optical flow parameters. The first layer is the size
of the input image and the last layer is ≥ the minSize. The sigma for each layer is computed
using the following formula:
sigmaLayer = sigma*sqrt( scale^-2 - 1 )
If the scale is 1 then a single layer pyramid will be created. If the scale is 0 then the scale will be determined by the maxLayers parameter.
T - Image typewidth - Width of input image.height - Height of input image.scale - Scale between layers. 0 ≤ scale ≤ 1. Try 0.7sigma - Adjusts the amount of blur applied to each layer. If sigma ≤ 0 then no blur is applied.minSize - The minimum desired image size in the pyramidmaxLayers - The maximum number of layers in the pyramid.imageType - Type of image for each layer