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

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< 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, bool useNativeMemory=false)

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, 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

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.

RequestHistogram(HistogramStage stage, int numBin=512)

Request ImageSDK to compute image histogram at certain stage

RemoveHistogram(HistogramStage stage)

Request ImageSDK to not compute image histogram at certain stage

GetHistogramStage(out Histogram hist, HistogramStage stage, bool cummulative=false)

Get histogram at certain image processing stage

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, IBitmapImage bitmap, MetaDataBase db, TiffConfig config)

Writes the image as a tiff file with customized metadata

WriteAsTiff(string filename, IBitmapImage bitmap, TiffConfig config)

Writes the image as a tiff file

WriteAsJpeg(string filename, IBitmapImage bitmap, JpegConfig config)

Writes the image as a jpeg file

WriteAsJpeg(string filename, IBitmapImage bitmap, MetaDataBase db, JpegConfig config)

Writes the image as a jpeg file with customized metadata

WriteAsJp2(string filename, IBitmapImage bitmap, Jp2Config config)

Writes the image as a jpeg 2000 file

WriteAsJp2(string filename, IBitmapImage bitmap, MetaDataBase db, Jp2Config config)

Writes the image as a jpeg 2000 file with customized metadata

WriteAsPgm(string filename, IBitmapImage bitmap)

Writes the image as a greyscale pgm file

Dispose()