Class IntersectionOverUnion

Object
IntersectionOverUnion

public class IntersectionOverUnion extends Object
Calculates the intersection-over-union score for a pair of bounding-boxes.
Author:
Owen Feehan
  • Method Details

    • forBoxes

      public static double forBoxes(BoundingBox box1, BoundingBox box2)
      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.