Class ImageFlow

  • public class ImageFlow
    extends java.lang.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.
    • Constructor Summary

      Constructor Description
      ImageFlow​(int width, int height)  
    • Field Detail

      • width

        public int width
      • height

        public int height
    • Constructor Detail

      • ImageFlow

        public ImageFlow​(int width,
                         int height)
    • 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
        width - New image width
        height - new image height
      • invalidateAll

        public void invalidateAll()
        Marks all pixels as having an invalid flow
      • fillZero

        public void fillZero()
      • 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)