| Modifier and Type | Method and Description |
|---|---|
Rectangle |
getBounds()
Returns the bounding
Rectangle of this BoundingBox. |
double |
getIoU(BoundingBox box)
Gets the Intersection over Union (IoU) value between bounding boxes.
|
java.lang.Iterable<Point> |
getPath()
Returns an iterator object that iterates along the
BoundingBox boundary and provides
access to the geometry of the BoundingBox outline. |
Point |
getPoint()
Returns the top left point of the bounding box.
|
Rectangle getBounds()
Rectangle of this BoundingBox.Rectangle for this BoundingBoxjava.lang.Iterable<Point> getPath()
BoundingBox boundary and provides
access to the geometry of the BoundingBox outline.Iterable object, which independently traverses the geometry of the BoundingBoxPoint getPoint()
Point of the top left cornerdouble getIoU(BoundingBox box)
Also known as Jaccard index
box - the bounding box to calculate