Class RenderedObjectInfoGenerator | Perception | 0.5.0-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class RenderedObjectInfoGenerator

    A CPU-based pass which computes bounding box and pixel counts per-object from instance segmentation images

    Inheritance
    Object
    RenderedObjectInfoGenerator
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.Perception.GroundTruth
    Syntax
    public class RenderedObjectInfoGenerator

    Methods

    Compute(NativeArray<UInt32>, Int32, BoundingBoxOrigin, out NativeArray<RenderedObjectInfo>, Allocator)

    Compute RenderedObjectInfo for each visible object in the given instance segmentation image. InstanceSegmentationRawData should be the raw data from a texture filled by or using the same LabelingConfiguration that was passed into this object.

    Declaration
    public void Compute(NativeArray<uint> instanceSegmentationRawData, int stride, BoundingBoxOrigin boundingBoxOrigin, out NativeArray<RenderedObjectInfo> renderedObjectInfos, Allocator allocator)
    Parameters
    Type Name Description
    NativeArray<UInt32> instanceSegmentationRawData

    The raw instance segmentation image.

    Int32 stride

    Stride of the image data. Should be equal to the width of the image.

    BoundingBoxOrigin boundingBoxOrigin

    Whether bounding boxes should be top-left or bottom-right-based.

    NativeArray<RenderedObjectInfo> renderedObjectInfos

    When this method returns, filled with RenderedObjectInfo entries for each object visible in the frame.

    Allocator allocator

    The allocator to use for allocating renderedObjectInfos and perLabelEntryObjectCount.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023