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
14 lines
253 B
#ifndef BOX_H
|
|
#define BOX_H
|
|
#include "darknet.h"
|
|
namespace DN{
|
|
typedef struct{
|
|
float dx, dy, dw, dh;
|
|
} dbox;
|
|
|
|
float box_rmse(box a, box b);
|
|
dbox diou(box a, box b);
|
|
box decode_box(box b, box anchor);
|
|
box encode_box(box b, box anchor);
|
|
};
|
|
#endif
|