Class MosaickingFilter
The role of this class is to keep only the color channel information that match the mosaic pattern provided.
Inherited Members
Namespace: Mechatronics.SensorSDK
Syntax
[NodeCategory("Color filter", "MosaickingFilter", NodeTick.Asynchronous, (LifeCycle)0, 0F, NodeMode.Standard, false)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.sensorsdk@1.0/manual/DeveloperGuide/Transcoders.html")]
public class MosaickingFilter : RenderTextureTranscoder
Fields
mosaicPattern
Declaration
[Tooltip("Color Filter Array Pattern for the colors")]
[Field("MosaicPattern", PortDirection.Left, FieldExtra.Read | FieldExtra.ChangeEvent)]
[SerializeField]
public PortType<Texture2D> mosaicPattern
Field Value
Type | Description |
---|---|
PortType<Texture2D> |
Methods
Disable()
Disable the change event on the inTranscode port and release graphics resources.
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Initialize the filter and enable on change event on the on inTranscode port.
Declaration
public override void Enable(Scheduler.ClockState clockState)
Parameters
Type | Name | Description |
---|---|---|
Scheduler.ClockState | clockState | The parameters of the waveform associated to this node |
Overrides
Transcode(CustomPassContext)
Add to the command buffer the process of removing all color channels and keepnig only the one that match the mosaic pattern provide on the input port.
Declaration
protected override void Transcode(CustomPassContext ctx)
Parameters
Type | Name | Description |
---|---|---|
CustomPassContext | ctx | Custom pass context |