public class DwOpticalFlow extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DwOpticalFlow.Frame |
static class |
DwOpticalFlow.Param |
Modifier and Type | Field and Description |
---|---|
DwPixelFlow |
context |
DwOpticalFlow.Frame |
frameCurr |
DwOpticalFlow.Frame |
framePrev |
DwOpticalFlow.Param |
param |
int |
UPDATE_STEP |
Constructor and Description |
---|
DwOpticalFlow(DwPixelFlow context,
int w,
int h) |
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
float[] |
getVelocity(float[] data_F4) |
void |
release() |
void |
renderVelocityShading(processing.opengl.PGraphics2D dst) |
void |
renderVelocityStreams(processing.opengl.PGraphics2D dst,
int spacing) |
void |
reset() |
void |
resize(int w,
int h) |
void |
update(processing.opengl.PGraphics2D pg_curr) |
public DwPixelFlow context
public DwOpticalFlow.Param param
public DwOpticalFlow.Frame frameCurr
public DwOpticalFlow.Frame framePrev
public int UPDATE_STEP
public DwOpticalFlow(DwPixelFlow context, int w, int h)
public void dispose()
public void release()
public void resize(int w, int h)
public void reset()
public void update(processing.opengl.PGraphics2D pg_curr)
public void renderVelocityShading(processing.opengl.PGraphics2D dst)
public void renderVelocityStreams(processing.opengl.PGraphics2D dst, int spacing)
public float[] getVelocity(float[] data_F4)
Processing library PixelFlow by Thomas Diewald. (c) 2017