docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Namespace UnityEngine.Perception.GroundTruth.Utilities

    Classes

    ComputeBufferReader

    A utility for retrieving compute buffer data from the GPU.

    ImageEncoder

    A utility for encoding raw pixel data into a variety of formats using the Unity Job System.

    InstanceIdToColorMapping

    Static class to procedurally generate a unique color for an instance ID. This algorithm is deterministic, and will always return the same color for a ID, and the same ID for a color. ID 0 is reserved to be an invalid ID and is mapped to color black (0,0,0,255). Invalid IDs always map to black, and black always maps to ID 0. In order to try to create visually contrasting colors for IDs, there are a subset of IDs reserved (1-65) to be generated by applying the golden ration to find the next color in the HSL spectrum. All of these colors, and only theses colors, will be in the alpha channel 255. After the first 65 IDs, the color will be determined by iterating through all available RGB values in the alpha channels from 264 - 1. Alpha channel 0 is marked as invalid. This service will support over 4 billion unique IDs => colors [(256^4) - (256*2) + 64]

    RenderTextureReader

    RenderTextureReader reads a RenderTexture from the GPU whenever Capture is called and passes the data back through a provided callback.

    SegmentationUtilities

    A utility for creating color textures from an instance segmentation indices texture.

    SuperSamplingUtility

    A utility for downscaling render textures to support super resolution anti-aliasing.

    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)