box.h 234 B

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