DecodeConfig.ApplyTo Method

Definition

Namespace: P1.ImageSdk

Trigger decoding of the applied options on the raw-image and return a new image as a RAW data bitmap

public SensorBayerOutput ApplyTo(RawImage image, Func<UInt32, byte[]> allocFunction = null);

By default the memory for the decoded image is allocated by using C# new operator. However, you can provide your own allocator function, to allow re-using existing buffers. The memory allocator callback function takes the requested buffer size in bytes, and must return a byte array, byte[].

Parameters:

image

The source image to apply the configured decoding to

allocFunction

An optional memory allocator function

Returns:

The new processed image as a bitmap object