raisim::BoundingBox2D
struct · #include <raisim/sensors/BoundingBoxes.hpp>
2D bounding box of one instance in a camera image. An instance is one body of one object, with the ids of the segmentation images (SegmentationCamera object and body images). Image coordinates are pixel indices: x is the column (0 at the left), y the row (0 at the top).
Public attributes
objectId
int32_t objectIdWorld index of the object (SegmentationCamera object image).
bodyId
int32_t bodyIdBody index within the object (SegmentationCamera body image).
label
int32_t labelSemantic label of the body (SegmentationCamera label image); -1 when the image has no labels.
xMin
int32_t xMinLeftmost visible column (tight box, inclusive).
yMin
int32_t yMinTopmost visible row (tight box, inclusive).
xMax
int32_t xMaxOne past the rightmost visible column (tight box, exclusive).
yMax
int32_t yMaxOne past the bottom visible row (tight box, exclusive).
visiblePixels
uint32_t visiblePixelsNumber of pixels of the instance in the image.
looseXMin
float looseXMinLoose box: the full projected extent of the instance including occluded parts, clipped to the image, in continuous pixel coordinates (pixel (x, y) covers [x, x + 1) x [y, y + 1), so the image spans [0, width] x [0, height]); NaN when not computed. Renderers compute it (rayrai: RayraiWindow::computeBoundingBoxes(), SensorBatchRenderer::segmentationBoundingBoxes()).
looseYMin
float looseYMinSee looseXMin.
looseXMax
float looseXMaxSee looseXMin.
looseYMax
float looseYMaxSee looseXMin.
truncation
float truncationFraction of the projected extent outside the image (KITTI truncation, 0 to 1); -1 when not computed.
occlusionRatio
float occlusionRatio1 - visible pixels / pixels without occlusion (0 to 1); -1 when not computed.