Darknet/YOLO v3.0-177-gfa2353b
Object Detection Framework
 
Loading...
Searching...
No Matches
box.hpp File Reference
Include dependency graph for box.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  dbox
 
struct  detection_with_class
 

Functions

float box_ciou (const Darknet::Box &a, const Darknet::Box &b)
 
float box_diou (const Darknet::Box &a, const Darknet::Box &b)
 
float box_giou (const Darknet::Box &a, const Darknet::Box &b)
 
float box_iou (const Darknet::Box &a, const Darknet::Box &b)
 
float box_iou_kind (const Darknet::Box &a, const Darknet::Box &b, const IOU_LOSS iou_kind)
 
float box_rmse (const Darknet::Box &a, const Darknet::Box &b)
 
Darknet::Box decode_box (const Darknet::Box &b, const Darknet::Box &anchor)
 
dbox diou (const Darknet::Box &a, const Darknet::Box &b)
 
void do_nms (Darknet::Box *boxes, float **probs, int total, int classes, float thresh)
 
void do_nms_sort_v2 (Darknet::Box *boxes, float **probs, int total, int classes, float thresh)
 
dxrep dx_box_iou (const Darknet::Box &a, const Darknet::Box &b, const IOU_LOSS iou_loss)
 
Darknet::Box encode_box (const Darknet::Box &b, const Darknet::Box &anchor)
 
Darknet::Box float_to_box (const float *f)
 
Darknet::Box float_to_box_stride (const float *f, const int stride)
 
detection_with_classget_actual_detections (const Darknet::Detection *dets, int dets_num, float thresh, int *selected_detections_num, const Darknet::VStr &names)
 Creates array of detections with prob > thresh and fills best_class for them Return number of selected detections in *selected_detections_num.
 

Function Documentation

◆ box_ciou()

float box_ciou ( const Darknet::Box a,
const Darknet::Box b 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ box_diou()

float box_diou ( const Darknet::Box a,
const Darknet::Box b 
)

https://github.com/Zzh-tju/DIoU-darknet https://arxiv.org/abs/1911.08287

Here is the call graph for this function:
Here is the caller graph for this function:

◆ box_giou()

float box_giou ( const Darknet::Box a,
const Darknet::Box b 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ box_iou()

float box_iou ( const Darknet::Box a,
const Darknet::Box b 
)
Here is the caller graph for this function:

◆ box_iou_kind()

float box_iou_kind ( const Darknet::Box a,
const Darknet::Box b,
const IOU_LOSS  iou_kind 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ box_rmse()

float box_rmse ( const Darknet::Box a,
const Darknet::Box b 
)

◆ decode_box()

Darknet::Box decode_box ( const Darknet::Box b,
const Darknet::Box anchor 
)

◆ diou()

dbox diou ( const Darknet::Box a,
const Darknet::Box b 
)
Todo:
the following IF statement always evaluated to true due to the "|| 1" comparison. That line was changed by AlexeyAB on 2019-11-23. Was that an accident? Should the code below never run? Or was this a debug modification that was accidentally left in the code?
Todo:
due to the error (?) in the IF statmeent above, we'll never get to the code below this line!
Here is the caller graph for this function:

◆ do_nms()

void do_nms ( Darknet::Box boxes,
float **  probs,
int  total,
int  classes,
float  thresh 
)
Here is the call graph for this function:

◆ do_nms_sort_v2()

void do_nms_sort_v2 ( Darknet::Box boxes,
float **  probs,
int  total,
int  classes,
float  thresh 
)
Todo:
replace qsort() low priority
Here is the call graph for this function:

◆ dx_box_iou()

dxrep dx_box_iou ( const Darknet::Box a,
const Darknet::Box b,
const IOU_LOSS  iou_loss 
)

◆ encode_box()

Darknet::Box encode_box ( const Darknet::Box b,
const Darknet::Box anchor 
)

◆ float_to_box()

Darknet::Box float_to_box ( const float *  f)
Here is the caller graph for this function:

◆ float_to_box_stride()

Darknet::Box float_to_box_stride ( const float *  f,
const int  stride 
)
Here is the caller graph for this function:

◆ get_actual_detections()

detection_with_class * get_actual_detections ( const Darknet::Detection dets,
int  dets_num,
float  thresh,
int *  selected_detections_num,
const Darknet::VStr names 
)

Creates array of detections with prob > thresh and fills best_class for them Return number of selected detections in *selected_detections_num.

Here is the caller graph for this function: