Class 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.
  • Field Details

    • width

      public int width
    • height

      public int height
    • data

      public ImageFlow.D[] 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
      width - New image width
      height - 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)