Class DemosaickingBoxFilter
A box filter demosaicking algorithm is a digital image process used to reconstruct a full color image from the incomplete color samples output from a photosensorArray. Reference : https://en.wikipedia.org/wiki/Demosaicing#:~:text=A%20demosaicing%20(also%20de%2Dmosaicing,CFA%20interpolation%20or%20color%20reconstruction.
Inherited Members
Namespace: Mechatronics.SensorSDK
Syntax
[NodeCategory("Image Processing", "DemosaickingBoxFilter", 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 DemosaickingBoxFilter : 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 on change event and free graphic resources.
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Enable on change event on the render texture input and initialize the compute shader.
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 the demosaicking box filter to the camera command buffer.
Declaration
protected override void Transcode(CustomPassContext ctx)
Parameters
Type | Name | Description |
---|---|---|
CustomPassContext | ctx |