DecodeConfig Class

Definition

Namespace: P1.ImageSdk

Defines a set of decoding flags, that can be used on a raw image More…

public class DecodeConfig

Remarks

Defines a set of decoding flags, that can be used on a raw image

This class lets you configure decoding options and decode an raw image. You obtain an instance of this class be using RawImage.Decode. After calls to decoding option methods like BlackLeveling, you must call ApplyTo to trigger the actual decoding.

This class handles only decoding and/or decompressing raw image data, not raw convertion. For raw converyion see ConvertConfig.

// Simple one-liner raw file decompression, and custom static calibration var rawBitmap = new DecodeConfig().BlackLeveling(BlackClamp.Default, DigitalOffset.Keep).AppleTo(new RawImage (“some-file.iiq”));

See also:

RawImage.Decode

Constructors

DecodeConfig()

Creates a new decoding options object, with no options configured

Properties

BlackClamp

Set to true to calibrate raw data. Default is True

DigitalOffset

Set to true to offset raw data by black level defined in metadata. Default is False

dualExposureMode

Choice to handle double exposure image. Default is first frame only.

Methods

SetDualExposureOutput(DualExposureOutput mode)

Specify method to merge double exposure image

BlackLeveling(BlackClamp clamp=ImageSdk.BlackClamp.On, DigitalOffset digitalOffset=DigitalOffset.Default)

Control how to calibrate pixel’s black point, using black clamping and digital offset

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

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

Defaults()

Returns a predefined config object, with sensibel options enabled already