Tracklets
最后更新
spatialCoordinates(X/Y/Z,单位为毫米)。velocity 和 speed 是可选的 3D 估计值,单位为米/秒,当没有有效的空间状态可用时(例如仅 RGB 跟踪),它们为空。重映射
Tracklets 是可转换的,这意味着它可以重映射到另一个帧的坐标系中。有关详细信息,请参阅 重映射可转换消息。功能示例
参考
class
dai::Tracklets
variable
LengthUnit unit
Measurement unit used by all tracklets' spatialCoordinates in this list.
variable
std::vector< Tracklet > tracklets
variable
int64_t sequenceNum
variable
Timestamp ts
variable
Timestamp tsDevice
variable
std::optional< Timestamp > tsSystem
variable
std::optional< ImgTransformation > transformation
function
Tracklets()function
~Tracklets()function
Tracklets transformTo(const ImgTransformation & target)Returns a new Tracklets message with the tracklets transformed into the target image transformation.For each tracklet, the bounding box is assumed to lie on a plane parallel to the image plane at depth tracklet.spatialCoordinates.z (that is, all four bounding-box corners are projected using the same depth value). The transformed corners are then fit with the smallest enclosing rotated rectangle to preserve rectangularity.
Parameters
- target: Target image transformation.
function
void serialize(std::vector< std::uint8_t > & metadata, DatatypeEnum & datatype)inline function
DatatypeEnum getDatatype()Get the datatype of this specific message.
Returns
DatatypeEnum
function
function
std::optional< ImgTransformation > getTransformation()Returns the current transformation if set, else std::nullopt.
function
void setTransformation(const ImgTransformation & transformation)Sets the current transformation.
需要帮助?
请访问讨论论坛以获取技术支持或您可能有的任何其他问题。