Package org.anchoranalysis.spatial.box
Class IntersectionOverUnion
Object
IntersectionOverUnion
Calculates the intersection-over-union
score for a pair of bounding-boxes.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
forBoxes
(BoundingBox box1, BoundingBox box2) Calculates the intersection-over-union score a pair of bounding-boxes.
-
Method Details
-
forBoxes
Calculates the intersection-over-union score a pair of bounding-boxes.- Parameters:
box1
- the first box.box2
- the second box.- Returns:
- the area of intersection divided by the area of union, with 0 if there is no intersection or union.
-