You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
253 B

7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef BOX_H
  2. #define BOX_H
  3. #include "darknet.h"
  4. namespace DN{
  5. typedef struct{
  6. float dx, dy, dw, dh;
  7. } dbox;
  8. float box_rmse(box a, box b);
  9. dbox diou(box a, box b);
  10. box decode_box(box b, box anchor);
  11. box encode_box(box b, box anchor);
  12. };
  13. #endif