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.
|
PathIterator |
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 BoundingBox
PathIterator getPath()
BoundingBox
boundary and provides
access to the geometry of the BoundingBox
outline.PathIterator
object, which independently traverses the geometry of the
BoundingBox
Point getPoint()
Point
of the top left cornerdouble getIoU(BoundingBox box)
Also known as Jaccard index
box
- the bounding box to calculate