Package boofcv.struct.flow
Class ImageFlow
java.lang.Object
boofcv.struct.flow.ImageFlow
public class ImageFlow extends Object
The dense optical flow of an image. Each pixel contains a data structure that indicates optical flow at the pixel
and if the optical flow could be found.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImageFlow.D
Specifies the optical flow for a single pixel. -
Field Summary
Fields Modifier and Type Field Description ImageFlow.D[]
data
int
height
int
width
-
Constructor Summary
Constructors Constructor Description ImageFlow(int width, int height)
-
Method Summary
Modifier and Type Method Description void
fillZero()
ImageFlow.D
get(int x, int y)
int
getHeight()
int
getWidth()
void
invalidateAll()
Marks all pixels as having an invalid flowboolean
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)
-
Field Details
-
width
public int width -
height
public int height -
data
-
-
Constructor Details
-
ImageFlow
public ImageFlow(int width, int height)
-
-
Method Details
-
reshape
public void reshape(int width, int height)Changes the shape to match the specified dimension. Memory will only be created/destroyed if the requested size is larger than any previously requested size- Parameters:
width
- New image widthheight
- new image height
-
invalidateAll
public void invalidateAll()Marks all pixels as having an invalid flow -
fillZero
public void fillZero() -
get
-
unsafe_get
-
isInBounds
public final boolean isInBounds(int x, int y) -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
setTo
-