DenoiseBuffer
Denoise an image.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering.Denoising
- Assembly: UnityEngine.OpenImageDenoiseModule
DenoiseBuffer(DenoiseBufferType, float*, DenoiseChannels)
Denoise an image.
public int DenoiseBuffer(DenoiseBufferType type, float* dataIn, DenoiseChannels channels)
Parameters
Which input image the buffer supplies.
The image to denoise, four floats per pixel.
Which channels of the buffer carry the signal.
Returns
Type | Description |
|---|---|
| int | 0 on success, -1 on failure. |
DenoiseBuffer(string, float*, DenoiseChannels)
Denoise a buffer, naming the input by string.
public int DenoiseBuffer(string type, float* dataIn, DenoiseChannels channels)
Parameters
"color".
The image to denoise, four floats per pixel.
Which channels of the buffer carry the signal.
Returns
Type | Description |
|---|---|
| int | 0 on success, -1 on failure. |