fix wrong union calculation in box_overlap_testing.h (#2735)

Co-authored-by: Moosbauer, Sebastian <sebastian.moosbauer@posteo.de>
pull/2740/head
smoosbau 2 years ago committed by GitHub
parent eb5de0d534
commit ddad576d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,8 +20,8 @@ namespace dlib
const double inner = a.intersect(b).area();
if (inner == 0)
return 0;
const double outer = (a+b).area();
return inner/outer;
const double outer = a.area() + b.area() - inner;
return inner / outer;
}
// ----------------------------------------------------------------------------------------

Loading…
Cancel
Save