# sp500\_yolo\_segmentation

```cpp
#include <sp500/yolo.h>

struct sp500_yolo_segmentation
```

One segmentation result. 11 floats; the layout of a [SP500\_YOLO\_TASK\_SEGMENT](<https://docs.mobilint.com/regulus/kr/v4.1/api/cpp/yolo-h/#sp500-yolo-task-detect>) record.

## Attributes

| Member | Description |
| --- | --- |
| [`det`](<#det>) |  |
| [`bx1`](<#bx1>) |  |
| [`by1`](<#by1>) |  |
| [`bx2`](<#bx2>) |  |
| [`by2`](<#by2>) |  |
| [`mask_offset`](<#mask-offset>) |  |

### det

```cpp
sp500_yolo_detection det
```

the detection

### bx1

```cpp
float bx1
```

mask box left, snapped to 4 px and clamped

### by1

```cpp
float by1
```

mask box top

### bx2

```cpp
float bx2
```

mask box right

### by2

```cpp
float by2
```

mask box bottom

### mask\_offset

```cpp
float mask_offset
```

Byte offset into `output.mask` of this box's mask, as a uint32 bit pattern in a float slot - read it with [sp500\_yolo\_mask\_offset()](<https://docs.mobilint.com/regulus/kr/v4.1/api/cpp/yolo-h/#sp500-yolo-mask-offset>), never as a float. The mask is `(bx2 - bx1) * (by2 - by1)` bytes valued 0 or 1. [SP500\_YOLO\_MASK\_NONE](<https://docs.mobilint.com/regulus/kr/v4.1/api/cpp/yolo-h/#sp500-yolo-mask-none>) means no mask was stored.
