Class RenderedObjectInfoGenerator
A CPU-based pass which computes bounding box and pixel counts per-object from instance segmentation images
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Assembly: solution.dll
Syntax
public class RenderedObjectInfoGenerator : IGroundTruthGenerator, IDisposable
Constructors
Name | Description |
---|---|
RenderedObjectInfoGenerator(LabelingConfiguration) | Create a new CpuRenderedObjectInfoPass with the given LabelingConfiguration. |
Methods
Name | Description |
---|---|
Compute(NativeArray<uint>, int, BoundingBoxOrigin, out NativeArray<RenderedObjectInfo>, out NativeArray<uint>, Allocator) | Compute RenderedObjectInfo for each visible object in the given instance segmentation image. InstanceSegmentationRawData should be the raw data from a texture filled by InstanceSegmentationUrpPass or InstanceSegmentationPass using the same LabelingConfiguration that was passed into this object. |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
SetupMaterialProperties(MaterialPropertyBlock, Renderer, Labeling, uint) | Called by GroundTruthLabelSetupSystem when first registered or when a Labeling is created at runtime. |
TryGetLabelEntryFromInstanceId(int, out LabelEntry) | Attempts to find the label id for the given instance id using the LabelingConfiguration passed into the constructor. |