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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(int x, int y) Adds a new point to the listvoid
configure
(int width, int height) Specifies the image's width and height.void
copyInto
(DogArray<Point2D_I16> dst) Copy points from 'this' into 'dst'get
(int index) Returns the coordinate as aPoint2D_I32
.void
get
(int index, Point2D_F32 p) Retrieves a point from the listvoid
get
(int index, Point2D_F64 p) Retrieves a point from the listvoid
get
(int index, Point2D_I16 p) Retrieves a point from the listvoid
get
(int index, Point2D_I32 p) Retrieves a point from the listint
size()
-
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()
-