RawImage.Decode Method

Definition

Namespace: P1.ImageSdk

Get a decode object, that handles decompression and static calibration of the RAW image.

public SensorBayerOutput Decode(DecodeConfig config, Func<UInt32, byte[]> allocFunction = null);

Use this method if you wish to extract the RAW image data from the IIQ file. You can configure the DeviceOptions object to just return the prestine sensor output, or you can choose to do some basic static calibration of the RAW data.

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:

config

The Decode pipeline config to use when decoding the image

allocFunction

An optional memory allocator function

Returns:

Options object for getting RAW data

See also:

Convert(ConvertConfig, Func<uint, byte[]>)