public abstract class DenseFlowPyramidBase<T extends boofcv.struct.image.ImageGray>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boofcv.alg.interpolate.InterpolatePixelS<boofcv.struct.image.GrayF32> |
interp |
protected boofcv.struct.pyramid.PyramidFloat<boofcv.struct.image.GrayF32> |
pyr1 |
protected boofcv.struct.pyramid.PyramidFloat<boofcv.struct.image.GrayF32> |
pyr2 |
| Constructor and Description |
|---|
DenseFlowPyramidBase(double scale,
double sigma,
int maxLayers,
boofcv.alg.interpolate.InterpolatePixelS<boofcv.struct.image.GrayF32> interp) |
| Modifier and Type | Method and Description |
|---|---|
protected static <T extends boofcv.struct.image.ImageGray> |
imageNormalization(T image1,
T image2,
boofcv.struct.image.GrayF32 normalized1,
boofcv.struct.image.GrayF32 normalized2)
Function to normalize the images between 0 and 255.
|
protected void |
interpolateFlowScale(boofcv.struct.image.GrayF32 prev,
boofcv.struct.image.GrayF32 curr)
Takes the flow from the previous lower resolution layer and uses it to initialize the flow
in the current layer.
|
abstract void |
process(boofcv.struct.pyramid.ImagePyramid<boofcv.struct.image.GrayF32> image1,
boofcv.struct.pyramid.ImagePyramid<boofcv.struct.image.GrayF32> image2)
Computes dense optical flow from the provided image pyramid.
|
void |
process(T image1,
T image2)
Processes the raw input images.
|
protected void |
warpImageTaylor(boofcv.struct.image.GrayF32 before,
boofcv.struct.image.GrayF32 flowX,
boofcv.struct.image.GrayF32 flowY,
boofcv.struct.image.GrayF32 after)
Takes the flow from the previous lower resolution layer and uses it to initialize the flow
in the current layer.
|
protected boofcv.struct.pyramid.PyramidFloat<boofcv.struct.image.GrayF32> pyr1
protected boofcv.struct.pyramid.PyramidFloat<boofcv.struct.image.GrayF32> pyr2
protected boofcv.alg.interpolate.InterpolatePixelS<boofcv.struct.image.GrayF32> interp
public DenseFlowPyramidBase(double scale,
double sigma,
int maxLayers,
boofcv.alg.interpolate.InterpolatePixelS<boofcv.struct.image.GrayF32> interp)
public void process(T image1, T image2)
protected void interpolateFlowScale(boofcv.struct.image.GrayF32 prev,
boofcv.struct.image.GrayF32 curr)
protected void warpImageTaylor(boofcv.struct.image.GrayF32 before,
boofcv.struct.image.GrayF32 flowX,
boofcv.struct.image.GrayF32 flowY,
boofcv.struct.image.GrayF32 after)
public abstract void process(boofcv.struct.pyramid.ImagePyramid<boofcv.struct.image.GrayF32> image1,
boofcv.struct.pyramid.ImagePyramid<boofcv.struct.image.GrayF32> image2)
image1 - Pyramid of first imageimage2 - Pyramid of second imageprotected static <T extends boofcv.struct.image.ImageGray> void imageNormalization(T image1,
T image2,
boofcv.struct.image.GrayF32 normalized1,
boofcv.struct.image.GrayF32 normalized2)