Skip to main content
. 2022 Oct 30;10(11):2170. doi: 10.3390/healthcare10112170
Algorithm 1 Generalized intersection over union [25]
  • Input: 

      Two arbitrary convex shapes: A,BSRn

  • Output: 

      GIoU

  •  

    1 For A and B, find the smallest enclosing convex object C, where CSRn

  •  

    2 IoU=|AB||AB|

  •  

    3 GIoU=IoU|C(AB)||C|