docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Compute

    Compute(NativeArray<uint>, int, 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 InstanceSegmentationUrpPass or InstanceSegmentationPass 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<uint> instanceSegmentationRawData

    The raw instance segmentation image.

    int 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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)