darknet/src/box.h

19 lines
340 B
C
Raw Normal View History

2015-06-16 09:22:44 +03:00
#ifndef BOX_H
#define BOX_H
typedef struct{
float x, y, w, h;
} box;
typedef struct{
float dx, dy, dw, dh;
} dbox;
float box_iou(box a, box b);
dbox diou(box a, box b);
2015-07-31 02:19:14 +03:00
void do_nms(box *boxes, float **probs, int num_boxes, int classes, float thresh);
2015-08-25 04:27:42 +03:00
box decode_box(box b, box anchor);
box encode_box(box b, box anchor);
2015-06-16 09:22:44 +03:00
#endif