docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class WhiteBalance

    This node applies the white balancing in linear color space.

    Inheritance
    object
    NodeRuntime
    Transcoder
    RenderTextureTranscoder
    WhiteBalance
    Inherited Members
    RenderTextureTranscoder.inRenderTexture
    RenderTextureTranscoder.outRenderTexture
    RenderTextureTranscoder._outputBuffer
    RenderTextureTranscoder.PrepareOutputBuffer(int, int, RenderTextureFormat, RenderTextureReadWrite)
    RenderTextureTranscoder.Release()
    Transcoder.inTranscode
    Transcoder.outTranscode
    Transcoder._computeShader
    Transcoder.EnableInterfaceOnChangeEvent()
    Transcoder.DisableInterfaceOnChangeEvent()
    Transcoder.InitializeSensorSDKComputeShader(string, string)
    NodeRuntime._parent
    NodeRuntime._portList
    NodeRuntime._queryPath
    NodeRuntime._tickCPUTimeNs
    NodeRuntime.Initialize(SystemGraphComponent)
    NodeRuntime.InternalInitialize()
    NodeRuntime.Start()
    NodeRuntime.OnTick(double, double, Scheduler.ClockState, Scheduler.Signal)
    NodeRuntime.Update()
    NodeRuntime.FixedUpdate()
    NodeRuntime.OnPortAdded(string, Type, string, PortDirection, FieldExtra, ref IPortType)
    NodeRuntime.OnPortRemoved(string)
    NodeRuntime.InitializeDynamicPorts(SystemGraphComponent)
    NodeRuntime.QueryPath
    NodeRuntime.TickCPUTimeNs
    NodeRuntime.PortDataList
    Namespace: Mechatronics.SensorSDK
    Assembly: solution.dll
    Syntax
    [NodeCategory("Image Processing", "White Balance", NodeTick.Asynchronous, (LifeCycle)0, 0, NodeMode.Standard, false)]
    [HelpURL("https://docs.unity3d.com/Packages/com.unity.sensorsdk@2.0/manual/DeveloperGuide/Transcoders.html")]
    public class WhiteBalance : RenderTextureTranscoder
    Remarks

    This node has two modes of operation, one more of operation mimics the behaviour of HDRP white balancing with color and tint values.

    On the other hand if enableBalanceCoefficients is set to true then, the three values in the balanceCoefficients field is used to multiply every pixel in the input image.

    The balanceCofficients can be calculated using the provided button binding, on trigger the image in the sensor view is assumed to be a reference white. The average color value of this image is calculated and then the balance coefficients are calculated such that the maximum average color stays the same, and the rest of the colors are boosted to be equal.

    Methods

    Name Description
    Disable()

    Forwarded OnDisable Unity event from the parent SystemGraphComponent

    Enable(ClockState)

    Forwarded OnEnable Unity event from the parent SystemGraphComponent

    Transcode(CustomPassContext)

    Add the white balance process to the command buffer.

    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)