|
libeblearn
|
A bounding box class, based on the rect class. More...
#include <bbox.h>
Public Member Functions | |
| bbox () | |
| Empty constructor (assign a new unique instance_id). | |
| bbox (float h0, float w0, float height, float width) | |
| Construct a bbox. | |
| bbox (const bbox &other) | |
| Copy constructor. | |
| virtual | ~bbox () |
| Destructor. | |
| void | new_instance_id () |
| void | accumulate (bbox &b) |
| void | mul (float d) |
| string | pretty (vector< string > *labels=NULL) |
Static Public Member Functions | |
| static void | init_instance_id () |
| Set instance_id to zero. | |
Public Attributes | |
| int | class_id |
| object class | |
| float | confidence |
| detection confidence, 1 is the best. | |
| uint | nacc |
| Number of accumulated boxes. | |
| double | scaleh |
| < width of bounding box in original image | |
| double | scalew |
| scale factor at which object was detected | |
| int | iscale_index |
| Input scale index of bbox. | |
| int | oscale_index |
| Output scale index of bbox. | |
| rect< float > | i |
| Box in pyramid input space. | |
| vector< rect< float > > | mi |
| All input boxes in inputs. | |
| rect< float > | i0 |
| Non-transformed box in pyramid input space. | |
| int | iheight |
| scaled input image height | |
| int | iwidth |
| scaled input image width | |
| rect< int > | o |
| Box in pyramid output space. | |
| int | oheight |
| height of network's output map | |
| int | owidth |
| width of network's output map | |
| svector< bbox > | children |
| Boxes that compose this box. | |
Protected Attributes | |
| uint | instance_id |
Static Protected Attributes | |
| static uint | iid_cnt = 0 |
A bounding box class, based on the rect class.
| void ebl::bbox::accumulate | ( | bbox & | b | ) |
Accumulate all spatial values and confidence of b into this box. This can be useful to compute an average of boxes.
| void ebl::bbox::mul | ( | float | d | ) |
Multiply all spatial values of this box by d. This can be useful to compute an average of boxes.
| void ebl::bbox::new_instance_id | ( | ) |
Assign a new unique instance_id to this bbox. This can be useful if this bbox was instantiated with the copy constructor which retains original instance_id.
| string ebl::bbox::pretty | ( | vector< string > * | labels = NULL | ) |
Returns a string describing this bbox in details.
| labels | An optional vector of strings of class labels. |
| double ebl::bbox::scaleh |
< width of bounding box in original image
scale factor at which object was detected