Class CameraChannelBase
The base class for CameraChannels. A camera channel generates supplementary per-pixel ground truth data for the pixel data captured by a CameraSensor.
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth.Sensors.Channels
Assembly: Unity.Perception.Runtime.dll
Syntax
[MovedFrom("UnityEngine.Perception.GroundTruth")]
public abstract class CameraChannelBase
Properties
clearColor
The color to use when clearing the output texture of the channel.
Declaration
public abstract Color clearColor { get; }
Property Value
| Type | Description |
|---|---|
| Color |
outputTexture
The RenderTexture output of the channel.
Declaration
public RenderTexture outputTexture { get; }
Property Value
| Type | Description |
|---|---|
| RenderTexture |
perceptionCamera
The PerceptionCamera that enabled the channel.
Declaration
protected PerceptionCamera perceptionCamera { get; }
Property Value
| Type | Description |
|---|---|
| PerceptionCamera |
Methods
CreateOutputTexture(int, int)
Initializes and returns a new RenderTexture that will contain the output of the channel.
Declaration
public abstract RenderTexture CreateOutputTexture(int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | The requested width of the output texture in pixels. |
| int | height | The requested height of the output texture in pixels. |
Returns
| Type | Description |
|---|---|
| RenderTexture | The newly created channel output texture. |
Execute(CameraChannelInputs, RenderTexture)
Perform the graphics operations necessary to render the output of the channel.
Declaration
public abstract void Execute(CameraChannelInputs inputs, RenderTexture renderTarget)
Parameters
| Type | Name | Description |
|---|---|---|
| CameraChannelInputs | inputs | A variety of input parameters that can be used to provide context to a channel to facilitate rendering. |
| RenderTexture | renderTarget | The render target to write the channel output to. |