RawImage Class

Definition

Namespace: P1.ImageSdk

A handle to an IIQ image file, either on the file system or in a memory buffer More…

public class RawImage :  IDisposable

Remarks

A handle to an IIQ image file, either on the file system or in a memory buffer

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

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< UInt32, byte[]> allocFunction=null)

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

Convert(ConvertConfig config, Func< UInt32, byte[]> allocFunction=null)

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

Convert(ConvertConfig config, ref BitmapImage maskImage, Func< UInt32, byte[]> allocFunction=null)

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

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.

GetIceHistogramData()

Extract an Rgb histogram that was generated while converting the image into Rgb bitmap. It is possible to decide where in the convertion pipeline the histogram should be sampled by using the ConvertConfig function: SetHistogramStage.

GetGpsEventId()

Extract the GPSEventId from the IIQ files XMP meta data section, if any

GetImuData()

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

PickWhiteBalanceGain(ConvertConfig config, Point2D point, int radius)

Generates a White Balance Gain value from a Point defined on the View

WriteAsTiff(string filename, ITiffWritableImage bitmap, TiffConfig config)

Writes the image as a tiff file

Dispose()