Skip to main content

Box Struct

One axis-aligned detection produced by BoxDecode. More...

Declaration

struct simaai::neat::Box { ... }

Included Headers

#include <DetectionTypes.h>

Public Member Attributes Index

floatx1 = 0.0f

Top-left corner X, in pixels. More...

floaty1 = 0.0f

Top-left corner Y, in pixels. More...

floatx2 = 0.0f

Bottom-right corner X, in pixels. More...

floaty2 = 0.0f

Bottom-right corner Y, in pixels. More...

floatscore = 0.0f

Class confidence in [0, 1]. More...

intclass_id = -1

Predicted class index; -1 means unset. More...

Description

One axis-aligned detection produced by BoxDecode.

Coordinates are in the decoded image's pixel space (integer pixel units stored as float). class_id == -1 is the unset sentinel; valid detections always carry a non-negative class id.

See Also

BoxDecodeResult

Definition at line 35 of file DetectionTypes.h.

Public Member Attributes

class_id

int simaai::neat::Box::class_id = -1

Predicted class index; -1 means unset.

Definition at line 41 of file DetectionTypes.h.

41 int class_id = -1;

score

float simaai::neat::Box::score = 0.0f

Class confidence in [0, 1].

Definition at line 40 of file DetectionTypes.h.

40 float score = 0.0f;

x1

float simaai::neat::Box::x1 = 0.0f

Top-left corner X, in pixels.

Definition at line 36 of file DetectionTypes.h.

36 float x1 = 0.0f;

x2

float simaai::neat::Box::x2 = 0.0f

Bottom-right corner X, in pixels.

Definition at line 38 of file DetectionTypes.h.

38 float x2 = 0.0f;

y1

float simaai::neat::Box::y1 = 0.0f

Top-left corner Y, in pixels.

Definition at line 37 of file DetectionTypes.h.

37 float y1 = 0.0f;

y2

float simaai::neat::Box::y2 = 0.0f

Bottom-right corner Y, in pixels.

Definition at line 39 of file DetectionTypes.h.

39 float y2 = 0.0f;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.