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 Summary
Constructors Constructor Description ListIntPoint2D()
-
Method Summary
Modifier and Type Method Description void
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'Point2D_I32
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()
-