Objects Struct Reference

Object Scene data directly from the ZED SDK. Represents all detections given during a single image frame. Contains the number of object in the scene and the objectData structure for each object. Since the data is transmitted from C++ to C#, the size of the structure must be constant. Therefore, there is a limitation of 200 (MAX_OBJECT constant) objects in the image. More...

Functions

bool GetObjectDataFromId (ref sl.ObjectData objectData, int objectDataId)
 Function that look for a given object ID in the current object list and return the object associated if found and a status. More...
 

Attributes

int numObject
 How many objects were detected this frame. Use this to iterate through the top of objectData; objects with indexes greater than numObject are empty. More...
 
ulong timestamp
 Timestamp of the image where these objects were detected. More...
 
int isNew
 Defines if the object frame is new (new timestamp) More...
 
int isTracked
 Defines if the object is tracked More...
 
sl.DETECTION_MODEL detectionModel
 Current detection model used. More...
 
ObjectData[] objectData
 Array of objects More...
 

Detailed Description

Object Scene data directly from the ZED SDK. Represents all detections given during a single image frame. Contains the number of object in the scene and the objectData structure for each object. Since the data is transmitted from C++ to C#, the size of the structure must be constant. Therefore, there is a limitation of 200 (MAX_OBJECT constant) objects in the image.

Functions

◆ GetObjectDataFromId()

bool GetObjectDataFromId ( ref sl.ObjectData  objectData,
int  objectDataId 
)
inline

Function that look for a given object ID in the current object list and return the object associated if found and a status.

Parameters
objectData[out] : The object corresponding to the given ID if found
objectDataIdThe input object ID
Returns
True if found False otherwise

Variables

◆ numObject

int numObject

How many objects were detected this frame. Use this to iterate through the top of objectData; objects with indexes greater than numObject are empty.

Referenced by Objects.GetObjectDataFromId().

◆ timestamp

ulong timestamp

Timestamp of the image where these objects were detected.

◆ isNew

int isNew

Defines if the object frame is new (new timestamp)

◆ isTracked

int isTracked

Defines if the object is tracked

◆ detectionModel

sl.DETECTION_MODEL detectionModel

Current detection model used.

◆ objectData

ObjectData [] objectData

Array of objects

Referenced by Objects.GetObjectDataFromId().