boofcv.struct.flow
Class ImageFlow
- java.lang.Object
-
- boofcv.struct.flow.ImageFlow
-
public class ImageFlow extends java.lang.ObjectThe 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 and Description static classImageFlow.DSpecifies the optical flow for a single pixel.
-
Field Summary
Fields Modifier and Type Field and Description ImageFlow.D[]dataintheightintwidth
-
Constructor Summary
Constructors Constructor and Description ImageFlow(int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidfillZero()ImageFlow.Dget(int x, int y)intgetHeight()intgetWidth()voidinvalidateAll()Marks all pixels as having an invalid flowbooleanisInBounds(int x, int y)voidreshape(int width, int height)Changes the shape to match the specified dimension.voidsetTo(ImageFlow flow)ImageFlow.Dunsafe_get(int x, int y)
-
-
-
Field Detail
-
width
public int width
-
height
public int height
-
data
public ImageFlow.D[] data
-
-
Method Detail
-
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
public ImageFlow.D get(int x, int y)
-
unsafe_get
public ImageFlow.D unsafe_get(int x, int y)
-
isInBounds
public final boolean isInBounds(int x, int y)
-
getWidth
public int getWidth()
-
getHeight
public int getHeight()
-
setTo
public void setTo(ImageFlow flow)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG