Package boofcv.struct

Class ListIntPoint2D

java.lang.Object
boofcv.struct.ListIntPoint2D

public class ListIntPoint2D
extends Object
Compact format for storing 2D points as a single integer in an array. Offers much more efficient memory and possibly fewer cache misses.
  • Constructor Details

    • ListIntPoint2D

      public ListIntPoint2D()
  • Method Details

    • configure

      public void configure​(int width, int height)
      Specifies the image's width and height. used for encoding. Also resets the list.
    • add

      public void add​(int x, int y)
      Adds a new point to the list
    • get

      public void get​(int index, Point2D_I16 p)
      Retrieves a point from the list
    • get

      public void get​(int index, Point2D_I32 p)
      Retrieves a point from the list
    • get

      public void get​(int index, Point2D_F32 p)
      Retrieves a point from the list
    • get

      public void get​(int index, Point2D_F64 p)
      Retrieves a point from the list
    • get

      public Point2D_I32 get​(int index)
      Returns the coordinate as a Point2D_I32. not recommended due to the creation of a new point each call. Provided for backwards compatibility
    • copyInto

      public void copyInto​(DogArray<Point2D_I16> dst)
      Copy points from 'this' into 'dst'
    • size

      public int size()