浏览代码

Update BoundingBox3DLabeler.cs

/main
Mohsen Kamalzadeh 4 年前
当前提交
893aa785
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.perception/Runtime/GroundTruth/Labelers/BoundingBox3DLabeler.cs

2
com.unity.perception/Runtime/GroundTruth/Labelers/BoundingBox3DLabeler.cs


// Convert the combined bounds into world space
combinedBounds.center = labelTransform.TransformPoint(combinedBounds.center);
combinedBounds.extents = Vector3.Scale(combinedBounds.extents, labelTransform.localScale);
combinedBounds.extents = Vector3.Scale(combinedBounds.extents, labelTransform.lossyScale);
// Now convert all points into camera's space
var cameraCenter = cameraTransform.InverseTransformPoint(combinedBounds.center);

正在加载...
取消
保存