Package boofcv.struct.flow
Class ImageFlow
java.lang.Object
boofcv.struct.flow.ImageFlow
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
Modifier and TypeClassDescriptionstatic class
Specifies the optical flow for a single pixel. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
fillZero()
get
(int x, int y) int
int
getWidth()
void
Marks all pixels as having an invalid flowfinal boolean
isInBounds
(int x, int y) void
reshape
(int width, int height) Changes the shape to match the specified dimension.void
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
-