Skip to content

raisim::CocoRle ​

struct · #include <raisim/sensors/GroundTruthIo.hpp>

Uncompressed COCO run-length encoding of a binary mask.

Public attributes ​

height ​

cpp
int height

Image height in pixels.

width ​

cpp
int width

Image width in pixels.

counts ​

cpp
std::vector<uint32_t> counts

Run lengths in column-major pixel order (down the first column, then the next), alternating between pixels outside and inside the mask, starting outside (the first count may be 0).

RaiSim — physics for robotics and AI.