Class WhiteBalance
This node applies the white balancing in linear color space.
Inherited Members
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.1/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. |