RawImage Class

Definition

Namespace: P1.ImageSdk

public class RawImage :  IDisposable

Constructors

RawImage(byte[] iiqFileBuffer)

Create a RawImage object from an in-memory IIQ file

RawImage(IntPtr iiqFileBuffer, int bufferByteSize)

Create a RawImage object from an in-memory IIQ file

RawImage(string iiqFilePath)

Create a RawImage object from a system file path, to either a IIQ file

Members

outputImage

Get a processing object, that handles RAW convertion of the image into an RGB bitmap

Properties

Width

Get the image width, in pixels, of the exposed sensor area

Height

Get the image height, in pixels, of the exposed sensor area

RawSensorWidth

Get full width of the raw sensor output in pixels (including un-exposed area)

RawSensorHeight

Get full height of the raw sensor output in pixels (including un-exposed area)

Methods

Decode(DecodeConfig config, Func< uint, byte[]> allocFunction=null)

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

Convert(ConvertConfig config, Func< uint, byte[]> allocFunction=null, bool useNativeMemory=false)

Get a processing object, that handles RAW convertion of the image into an RGB bitmap

Convert(ConvertConfig config, ref double outputFocalLength, Func< uint, byte[]> allocFunction=null, bool useNativeMemory=false)

Get a processing object, that handles RAW convertion of the image into an RGB bitmap

Convert(ConvertConfig config, ref BitmapImage maskImage, ref double outputFocalLength, Func< uint, byte[]> allocFunction=null, bool useNativeMemory=false)

Get a processing object, that handles RAW convertion of the image into an RGB bitmap and also compute exposure mask if the threshold is set by user

ComputeSharpnessOnRegion(Rect regionOfInterest, SharpnessMetricParams sparams, Func< UInt32, byte[]> allocFunction=null)

Estimate sharpness of IIQ image on a region of interest

SetRoundCornerRadius(int radius)

Round the 4 corners of the image

GetTag(TagId tagId)

Get a metadata tag from the image file

TagExists(TagId tagId)

Check if a metadata tag exists in the image file

GetPreview()

Get the thumbnail from the raw file container

GetXmpPacket()

Convenience method to get the XMP meta data

GetGpsData()

Extract the GPS data embedded in the IIQ files XMP meta data section, if any

GetRawHistogramData()

Extract the Raw histogram from the raw image. The histogram is generated in the camera and stored in the iqq file when it was captured. Therefore it is also in a format defined by the camera.

SetGainMask(Masking mask)

Applies a gain mask to the image using pixel-wise multiplication: I = gainMask