Package boofcv.struct
Class ListIntPoint2D
java.lang.Object
boofcv.struct.ListIntPoint2D
Compact format for storing 2D points as a single integer in an array. Offers much more efficient memory and
possibly fewer cache misses.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(int x, int y) Adds a new point to the listvoidconfigure(int width, int height) Specifies the image's width and height.voidcopyInto(DogArray<Point2D_I16> dst) Copy points from 'this' into 'dst'get(int index) Returns the coordinate as aPoint2D_I32.voidget(int index, Point2D_F32 p) Retrieves a point from the listvoidget(int index, Point2D_F64 p) Retrieves a point from the listvoidget(int index, Point2D_I16 p) Retrieves a point from the listvoidget(int index, Point2D_I32 p) Retrieves a point from the listintsize()
-
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
Retrieves a point from the list -
get
Retrieves a point from the list -
get
Retrieves a point from the list -
get
Retrieves a point from the list -
get
Returns the coordinate as aPoint2D_I32. not recommended due to the creation of a new point each call. Provided for backwards compatibility -
copyInto
Copy points from 'this' into 'dst' -
size
public int size()
-