darknet  v3
Functions
box.c File Reference
#include "box.h"
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
Include dependency graph for box.c:

Go to the source code of this file.

Functions

int nms_comparator (const void *pa, const void *pb)
 
void do_nms_obj (detection *dets, int total, int classes, float thresh)
 
void do_nms_sort (detection *dets, int total, int classes, float thresh)
 
box float_to_box (float *f, int stride)
 
dbox derivative (box a, box b)
 
float overlap (float x1, float w1, float x2, float w2)
 
float box_intersection (box a, box b)
 
float box_union (box a, box b)
 
float box_iou (box a, box b)
 
float box_rmse (box a, box b)
 
dbox dintersect (box a, box b)
 
dbox dunion (box a, box b)
 
void test_dunion ()
 
void test_dintersect ()
 
void test_box ()
 
dbox diou (box a, box b)
 
void do_nms (box *boxes, float **probs, int total, int classes, float thresh)
 
box encode_box (box b, box anchor)
 
box decode_box (box b, box anchor)
 

Function Documentation

◆ box_intersection()

float box_intersection ( box  a,
box  b 
)

Definition at line 163 of file box.c.

◆ box_iou()

float box_iou ( box  a,
box  b 
)

Definition at line 179 of file box.c.

◆ box_rmse()

float box_rmse ( box  a,
box  b 
)

Definition at line 184 of file box.c.

◆ box_union()

float box_union ( box  a,
box  b 
)

Definition at line 172 of file box.c.

◆ decode_box()

box decode_box ( box  b,
box  anchor 
)

Definition at line 349 of file box.c.

◆ derivative()

dbox derivative ( box  a,
box  b 
)

Definition at line 101 of file box.c.

◆ dintersect()

dbox dintersect ( box  a,
box  b 
)

Definition at line 192 of file box.c.

◆ diou()

dbox diou ( box  a,
box  b 
)

Definition at line 295 of file box.c.

◆ do_nms()

void do_nms ( box boxes,
float **  probs,
int  total,
int  classes,
float  thresh 
)

Definition at line 319 of file box.c.

◆ do_nms_obj()

void do_nms_obj ( detection dets,
int  total,
int  classes,
float  thresh 
)

Definition at line 21 of file box.c.

◆ do_nms_sort()

void do_nms_sort ( detection dets,
int  total,
int  classes,
float  thresh 
)

Definition at line 58 of file box.c.

◆ dunion()

dbox dunion ( box  a,
box  b 
)

Definition at line 207 of file box.c.

◆ encode_box()

box encode_box ( box  b,
box  anchor 
)

Definition at line 339 of file box.c.

◆ float_to_box()

box float_to_box ( float *  f,
int  stride 
)

Definition at line 91 of file box.c.

◆ nms_comparator()

int nms_comparator ( const void *  pa,
const void *  pb 
)

Definition at line 6 of file box.c.

◆ overlap()

float overlap ( float  x1,
float  w1,
float  x2,
float  w2 
)

Definition at line 152 of file box.c.

◆ test_box()

void test_box ( )

Definition at line 266 of file box.c.

◆ test_dintersect()

void test_dintersect ( )

Definition at line 243 of file box.c.

◆ test_dunion()

void test_dunion ( )

Definition at line 221 of file box.c.