public class ImageFlow
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ImageFlow.D
Specifies the optical flow for a single pixel.
|
| Modifier and Type | Field and Description |
|---|---|
ImageFlow.D[] |
data |
int |
height |
int |
width |
| Constructor and Description |
|---|
ImageFlow(int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
void |
fillZero() |
ImageFlow.D |
get(int x,
int y) |
int |
getHeight() |
int |
getWidth() |
void |
invalidateAll()
Marks all pixels as having an invalid flow
|
boolean |
isInBounds(int x,
int y) |
void |
reshape(int width,
int height)
Changes the shape to match the specified dimension.
|
void |
setTo(ImageFlow flow) |
ImageFlow.D |
unsafe_get(int x,
int y) |
public int width
public int height
public ImageFlow.D[] data
public void reshape(int width,
int height)
width - New image widthheight - new image heightpublic void invalidateAll()
public void fillZero()
public ImageFlow.D get(int x, int y)
public ImageFlow.D unsafe_get(int x, int y)
public final boolean isInBounds(int x,
int y)
public int getWidth()
public int getHeight()
public void setTo(ImageFlow flow)