Public Member Functions | |
unsafe delegate void | OwLibCaptureProc (byte[] buf) |
unsafe delegate void | OwLibNotifyProc () |
unsafe void | Reconnect () |
unsafe void | CommandGet (UInt16 moduleID, UInt16 cmdIDBase, UInt16[] data) |
unsafe void | CommandSet (UInt16 moduleID, UInt16 cmdIDBase, UInt16[] data) |
unsafe void | CommandRun (UInt16 moduleID, UInt16 cmdIDBase) |
unsafe void | CaptureSetup (OwFrameRate frameRate, OwLibCaptureProc proc) |
unsafe void | CaptureStart () |
unsafe void | CaptureStop () |
unsafe void | CaptureRelease () |
unsafe void | Decode (byte[] srcBuf, byte[] dstBuf, OwDecodeType dtype) |
unsafe void | Decode (byte[] srcBuf, byte[] dstBuf, UInt32 dstBufStride, OwDecodeType dtype) |
unsafe void | FinishDecode () |
unsafe void | GetTempTable (UInt16[] buf) |
unsafe void | SetSubtractionTempTable (UInt16[] buf) |
unsafe void | EnableHighGainMode () |
unsafe void | SetWindowCorrection (OwWindowCorrectionType wctype, int reserved) |
unsafe void | GetWindowCorrection (out OwWindowCorrectionType wctype, out int reserved) |
unsafe void | SetReflectionCorrectionFile (string filePath) |
unsafe void | FileWriteSetup (string filePath) |
unsafe void | FileWriteStart () |
unsafe void | FileWriteStop () |
unsafe void | FileWritePassiveSetup (string filePath, int frameRateNumerator, int frameRateDenominator) |
unsafe void | FileWritePassiveAdd (byte[] buf) |
unsafe void | FileReadPause () |
unsafe void | FileReadResume () |
unsafe void | FileReadSeek (UInt64 timeOfs) |
unsafe void | FileTimeBasedAGCSetup (bool isLinearAGC, UInt32 sampleFrameNumIntvl, UInt64 fromTimeOfs, UInt64 toTimeOfs) |
unsafe void | SetAGCROIMask (bool[,] mask) |
unsafe void | DumpFrame (string filePath, UInt16[] buf, LepTelemetryDataLineA telem, OwDateTime *dateTime, bool tempOrRaw) |
Static Public Member Functions | |
static unsafe OwDev [] | GetDevices () |
static unsafe OwDev | GetDeviceByCaptureFilter (IntPtr baseFilter) |
static unsafe void | GetDevicesDiff (out OwDev[] newDevs, out OwDev[] removedDevs, OwDev[] oldDevs) |
static unsafe OwDecodeType | GetManualGainType (OwDecodeType dtype) |
static unsafe OwDecodeType | GetLinearAutoGainType (OwDecodeType dtype) |
static unsafe OwDecodeType | GetNonLinearAutoGainType (OwDecodeType dtype) |
static unsafe OwDev | FileReadSetup (string filePath, OwLibCaptureProc capProc, OwLibNotifyProc endNotifyProc) |
static unsafe void | Gray8ToRGB (byte[] srcBuf, int src_wx, int src_wy, byte[] dstBuf, int dstBufStride, int bpp) |
Properties | |
unsafe UInt32 | LibVersion [get] |
unsafe UInt16 | SupportedFWVersion [get] |
unsafe UInt16 | VendorID [get] |
unsafe UInt16 | ProductID [get] |
unsafe UInt16 | ReleaseNumber [get] |
unsafe UInt16 | FirmwareVersion [get] |
unsafe UInt16 [] | SerialNumber [get] |
unsafe UInt64 | SerialNumberAsUINT64 [get] |
unsafe UInt16 | FrameWidth [get] |
unsafe UInt16 | FrameHeight [get] |
unsafe bool | CircumferenceCorrection [get, set] |
unsafe bool | NoiseFilter [get, set] |
unsafe int | NoiseFilterThreshold [get, set] |
unsafe bool | Undistortion [get, set] |
unsafe bool | Disconnected [get] |
unsafe object | CaptureFilter [get] |
unsafe OwConfigFlag | Config [get, set] |
unsafe bool | Active [get] |
unsafe int | FooterLines [get] |
unsafe int | TelemetryDataLines [get] |
unsafe int | SupportedTelemetryDataRevision [get] |
unsafe bool | IsRealDevice [get] |
unsafe int | LastTempResolution [get] |
unsafe OwDecodeRange | DecodeRange [get, set] |
unsafe OwDecodeRange | AGCRange [get, set] |
unsafe bool | SubtractionTemp [get, set] |
unsafe UInt64 | FileTimeLength [get] |
unsafe UInt64 | FileHeadTimeOffset [get] |
unsafe UInt64 | FileCurrentTimeOffset [get] |
unsafe UInt32 | FileFrames [get] |
unsafe UInt32 | FileCurrentFrameNumber [get] |
unsafe OwDateTime | FileHeadDateTime [get] |
unsafe OwDateTime | FileCurrentLocalDateTime [get] |
unsafe double | FileReadSpeed [get, set] |
bool | FileReadPaused [get] |
unsafe bool | TimeBasedAGC [get, set] |
unsafe OwStatus | FileError [get] |
unsafe bool | UpsideDown [get, set] |
unsafe bool | RGBOrder [get, set] |
Represents a device handle.
unsafe void OWLIFT.OwDev.CaptureRelease | ( | ) |
Releases a configuration data for capturing.
unsafe void OWLIFT.OwDev.CaptureSetup | ( | OwFrameRate | frameRate, |
OwLibCaptureProc | proc | ||
) |
Configures the capturing. This function allocates data for capturing. Caller takes responsibility to release the allocated data by CaptureRelease() after stop capturing.
frameRate | [in] The frame rate. |
proc | [in] The callback function being called while capturing. This function is called every time a frame is retrieved from the device. The user can take frames in the user-defined function of which type is OwLibCaptureProc(). |
unsafe void OWLIFT.OwDev.CaptureStart | ( | ) |
Starts capturing.
OwException | at error occurred. |
unsafe void OWLIFT.OwDev.CaptureStop | ( | ) |
Stops capturing.
OwException | at error occurred. |
unsafe void OWLIFT.OwDev.CommandGet | ( | UInt16 | moduleID, |
UInt16 | cmdIDBase, | ||
UInt16 [] | data | ||
) |
Executes the sensor's command as command type "GET", and reads registers as a result. See this document about sensor's commands. about sensor's commands.
moduleID | [in] The Module ID. |
cmdIDBase | [in] The Command ID Base. |
data | [out] The array that receives registers' values. 'data' will be filled with register's values of which number is less than or equal to the length of 'data'. DATA 0 Register .. DATA 15 Register are readable. DATA 0 Register will be stored in the first element of 'data'. The byte order is host endian. |
OwException | at error occurred. |
unsafe void OWLIFT.OwDev.CommandRun | ( | UInt16 | moduleID, |
UInt16 | cmdIDBase | ||
) |
Executes the sensor's command as command type "RUN". See this document about sensor's commands. about sensor's commands.
moduleID | [in] The Module ID. |
cmdIDBase | [in] The Command ID Base. |
unsafe void OWLIFT.OwDev.CommandSet | ( | UInt16 | moduleID, |
UInt16 | cmdIDBase, | ||
UInt16 [] | data | ||
) |
Writes the specified value to the register, and executes the sensor's command as command type "SET". See this document about sensor's commands. about sensor's commands.
moduleID | [in] The Module ID. |
cmdIDBase | [in] The Command ID Base. |
data | [in] The array that stores registers' values. The registers will be wrote with values in 'data' of which element number is less than or equal to the length of 'data'. Store the value of DATA 0 Register at first. The byte order is host endian. |
OwException | at error occurred. |
unsafe void OWLIFT.OwDev.Decode | ( | byte [] | srcBuf, |
byte [] | dstBuf, | ||
OwDecodeType | dtype | ||
) |
Converts raw data to data of other formats or temperature data. In principle, call this function in the OwLibCaptureProc() callback function passed to CaptureSetup(). If this function is called once or more times against a frame, FinishDecode() must be called before next calling. After calling CaptureStart(), there is a possibility that this function throws OwException while a fixed term. If this function throws OwException, return from your callback function.
srcBuf | [in] The raw data of the frame. |
dstBuf | [out] The buffer into which 'srcBuf' is converted. |
dtype | [in] The decoding type. |
OwException | at error occurred. |
unsafe void OWLIFT.OwDev.Decode | ( | byte [] | srcBuf, |
byte [] | dstBuf, | ||
UInt32 | dstBufStride, | ||
OwDecodeType | dtype | ||
) |
Converts raw data to data of other formats or temperature data. In principle, call this function in the OwLibCaptureProc() callback function passed to CaptureSetup(). If this function is called once or more times against a frame, FinishDecode() must be called before next calling.
srcBuf | [in] The raw data of the frame. |
dstBuf | [out] The buffer into which 'srcBuf' is converted. |
dstBufStride | [in] The stride of the area where 'dstBuf' points in bytes. If 0 is specified, the value is automatically calculated. This parameter is not used when a'dtype' is RAW_14 or TEMPERATURE_16. |
dtype | [in] The decoding type. |
OwException | at error occurred. |
unsafe void OWLIFT.OwDev.DumpFrame | ( | string | filePath, |
UInt16 [] | buf, | ||
LepTelemetryDataLineA | telem, | ||
OwDateTime * | dateTime, | ||
bool | tempOrRaw | ||
) |
Outputs temperature data or raw data as ascii format.
filePath | [in] The file path to output. null means standard output. |
buf | [in] The temperature data or raw data. For a raw data, use a result of decoding by OwDecodeType.RAW_14. |
telem | [in] The telemetry data correponding to 'buf'. |
dateTime | [in] The date time to output. null means a current date time, |
tempOrRaw | [in] true : 'buf' is temperature data, false : 'buf' is raw data. |
unsafe void OWLIFT.OwDev.EnableHighGainMode | ( | ) |
Enables High Gain mode. Cannot use against Type-A.
unsafe void OWLIFT.OwDev.FileReadPause | ( | ) |
Pauses the raw-playing.
unsafe void OWLIFT.OwDev.FileReadResume | ( | ) |
Resumes the raw-playing.
unsafe void OWLIFT.OwDev.FileReadSeek | ( | UInt64 | timeOfs | ) |
Resumes the raw-playing.
timeOfs | [in] The time offset from the head in milli seconds. |
|
static |
Configures the raw-playing. To play a raw-recording file, get the device handle for playing by this function. The device handle this function returns uses a file as the data source instead of a real device. To start playing, call CaptureStart() against the device handle this function returns.
filePath | [in] The file path of a raw-recording file. |
capProc | [in] The callback function being called while playing. This function is called every time a frame is retrieved from the file. The user can take frames in the user-defined function of which type is OwLibCaptureProc. |
endNotifyProc | [in] The callback function being called at the end of file. |
unsafe void OWLIFT.OwDev.FileTimeBasedAGCSetup | ( | bool | isLinearAGC, |
UInt32 | sampleFrameNumIntvl, | ||
UInt64 | fromTimeOfs, | ||
UInt64 | toTimeOfs | ||
) |
Extracts frames from the raw-recording file at the specified interval and setup Time-Based AGC minimum and maximum temperatures of all the frames. This function must be called before calling CaptureStart().
isLinearAGC | [in] The kind of decode type which will be passed to OwLib_Decode(). TRUE : Use Linear AGC, FALSE : Use Non-Linear AGC. |
sampleFrameNumIntvl | [in] The interval number of frames for extracting. |
fromTimeOfs | [in] The time offset to start calculating. |
toTimeOfs | [in] The time offset to stop calculating. |
unsafe void OWLIFT.OwDev.FileWritePassiveAdd | ( | byte [] | buf | ) |
Add a frame to the raw-recording file. Call this function when you called FileWritePassiveSetup().
buf | [in] The frame buffer. This is raw data of sensor output of which format is in big-endian. |
unsafe void OWLIFT.OwDev.FileWritePassiveSetup | ( | string | filePath, |
int | frameRateNumerator, | ||
int | frameRateDenominator | ||
) |
Starts the raw-recording. This function is used when it is needed to change the timing to save frames. Use this with FileWritePassiveAdd().
filePath | [in] The file path of a raw-recording file. |
frameRateNumerator | [in] The numerator of the frame rate. |
frameRateDenominator | [in] The denominator of the frame rate. |
unsafe void OWLIFT.OwDev.FileWriteSetup | ( | string | filePath | ) |
Configures the raw-recording.
filePath | [in] The file path of a raw-recording file. |
unsafe void OWLIFT.OwDev.FileWriteStart | ( | ) |
Starts the raw-recording.
unsafe void OWLIFT.OwDev.FileWriteStop | ( | ) |
Stops the raw-recording.
unsafe void OWLIFT.OwDev.FinishDecode | ( | ) |
Notifies the completion for calling Decode() against a frame.
|
static |
Gets a device handle corresponding to the specified DirectShow capture filter. Throws OwException with DEVICE_NOT_FOUND if the capture filter is an inoperable one.
baseFilter | [in] The object that represents a capture filter of which type is IBaseFilter*. |
OwException | at error occurred. |
|
static |
Gets the device. If not device was found, OwException which has DEVICE_NOT_FOUND will occur. If the firmware version is invalid, OwException which has DEVICE_UNSUPPORTED will occur.
OwException | at error occurred. |
|
static |
Gets newly connected devices and detects disconnected devices. If not device was found, OwException which has DEVICE_NOT_FOUND will occur. If the firmware version is invalid, OwException which has DEVICE_UNSUPPORTED will occur. If this function successes or throws OwException with DEVICE_NOT_FOUND / DEVICE_UNSUPPORTED, values will be stored into newDevs, removedDevs.
newDevs | [out] The array that receives the newly connected device handle. If no device was newly connected, returns null. |
removedDevs | [out] The array that receives the disconnected devices within oldDevs. If no device was detected as disconnected, returns null. |
oldDevs | [in] The device handles that are already connected. If null is specified, disconnected devices will not be detected. |
OwException | at error occurred. |
|
static |
Converts the specified decoding type to the type of Linear Auto Gain Control.
dtype | [in] The decoding type. |
|
static |
Converts the specified decoding type to the type of Manual Gain Control.
dtype | [in] The decoding type. |
|
static |
Converts the specified decoding type to the type of Nonlinear Auto Gain Control.
dtype | [in] The decoding type. |
unsafe void OWLIFT.OwDev.GetTempTable | ( | UInt16 [] | buf | ) |
Gets the temperature data. The data can be gotten between calling Decode() once or more times against a frame and calling FinishDecode(). The data is same as one that can be gotten by Decode() with passing 'dtype' as TEMPERATURE_16.
buf | [out] The buffer that receives the temperature data. The format is 16-bit per pixel. The unit is represented by OwDev::LastTempResolution.
|
unsafe void OWLIFT.OwDev.GetWindowCorrection | ( | out OwWindowCorrectionType | wctype, |
out int | reserved | ||
) |
Gets a correction type for protection windows.
wctype | [out] The correction type. |
reserved | [out] Unused. |
|
static |
Converts 8-bit grayscale format images to RGB format.
srcBuf | [in] The source image's area. |
src_wx | [in] Width of the source image. |
src_wy | [in] Height of the source image. |
dstBuf | [out] The destination image's area. |
dstBufStride | [in] The stride of the area where 'dstBuf' points in bytes. If 0 is specified, the value is automatically calculated. |
bpp | [in] Byte per pixel. 3 or 4. |
unsafe delegate void OWLIFT.OwDev.OwLibCaptureProc | ( | byte [] | buf | ) |
Represents a callback function type that is called while capturing.
buf | [in] The frame buffer. This is raw data of sensor output of which format is in big-endian. Passing this value to the constructor of LepTelemetryDataLineA, it can be accessed to the Telemetry Data. |
unsafe delegate void OWLIFT.OwDev.OwLibNotifyProc | ( | ) |
unsafe void OWLIFT.OwDev.Reconnect | ( | ) |
Disconnect the device from the host and reconnect it by software operation.
unsafe void OWLIFT.OwDev.SetAGCROIMask | ( | bool | mask[,] | ) |
Sets ROI for Auto Gain Control. ROI is useful when colors look flat because there are pixels of high or low temperature at uninsteresting area.
mask | [in] Two dimensional bool array that has a dimension of [frame heigh, frame width]. When the mask value that position corresponds to the pixel's position is true, the pixel is calculation target. If all elements are falses, an exception is thrown. |
unsafe void OWLIFT.OwDev.SetReflectionCorrectionFile | ( | string | filePath | ) |
Sets a reflection correction data file. RReflection correction reduce a reflected image of OWLIFT in a protection window. Reflection correction data file can be generated and exported by OWLIFTCap.
filePath | [in] The file path of a reflection correction data file. |
unsafe void OWLIFT.OwDev.SetSubtractionTempTable | ( | UInt16 [] | buf | ) |
Sets the reference temperature data for the Temperature Data Subtraction Output.
buf | [in] The temperature data. |
unsafe void OWLIFT.OwDev.SetWindowCorrection | ( | OwWindowCorrectionType | wctype, |
int | reserved | ||
) |
Sets a correction type for protection windows.
wctype | [in] The correction type. |
reserved | [in] Unused. |
|
get |
Whether or not the device is capturing.
|
getset |
The temperature range for Auto Gain Control. The temperature less than the specified minimum temperature is corrected to the minimum color value. The temperature greater than the specified maximum temperature is corrected to the maximum color value.
|
get |
The DirectShow capture filter related to the device handle. The return value represents a capture filter of which type is IBaseFilter.
|
getset |
Whether or not the temperature correction of circumferential direction is enabled.
|
getset |
The device configuration.
|
getset |
The temperature range for Manual Gain Control. Manual Gain Control corrects colors of image so that the specified minimum temperature becomes the minimum color value in the color table and the maximum temperature becomes the maximum color value. The temperature less than the specified minimum temperature is corrected to the minimum color value. The temperature greater than the specified maximum temperature is corrected to the maximum color value.
|
get |
Whether or not the device was disconnected. As a restriction, this property is always false if the device was gotten by GetDeviceByCaptureFilter().
|
get |
The frame number of the frame last read from the raw-recording file. The first frame number is 1.
|
get |
The time of the frame last read from the raw-recording file.
|
get |
The time offset of the frame last read from the raw-recording file.
|
get |
The error occurred while recording or playing the raw-recording file.
|
get |
The number of frames of the raw-recording file.
|
get |
The time of the first frame in the raw-recording file.
|
get |
The time offset of the first frame in the raw-recording file.
|
get |
Whether or not playing raw-recording file is paused.
|
getset |
The scaling factor for the playback speed of raw-recording file. The value must be greater than or equal to zero. Zero means maximum speed.
|
get |
The time length of the raw-recording file.
|
get |
The device firmware version number. If the version number is X.Y X is assigned to b15..8, Y is assigned to b7..b0.
|
get |
Returns the number of trailing lines after a thermography block in a frame data. This includes the number of lines of Telemetry Data.
|
get |
The vertical resolution of the frame.
|
get |
The horizontal resolution of the frame.
|
get |
Whether or not the specified handle is related to a real device.
|
get |
Returns the resolution of the temperature table corresponding to the last decoded frame. Returns 10 or 100. A kelvin value is obtained by dividing a temperature value of GetTempTable() by this value. This property must not be obtained before calling Decode().
|
get |
The library version number. If the version number is X.Y.Z, X is assigned to b31..16, Y is assigned to b15..b8 and Z is assigned b7..b0.
|
getset |
Whether or not the Noise Filter is enabled.
|
getset |
The threshold of the Noise Filter. The value from Const.OWDECODE_NOISE_FILTER_THRESHOLD_MIN to Const.OWDECODE_NOISE_FILTER_THRESHOLD_MAX. Const.OWDECODE_NOISE_FILTER_THRESHOLD_MIN is minimum correction strength.
|
get |
The Product ID (idProduct) as an USB device.
|
get |
The Release Number (bcdDevice) as an USB device.
|
getset |
Whether the byte-order of RGB format is BGR or RGB. true: BGR, false: RGB This property is only relevant for 24-bit RGB and 32-bit RGB.
|
get |
The serial number of the sensor module as WORD array.
|
get |
The serial number of the sensor module as UINT64 value.
|
getset |
Whether or not the Temperature Data Subtraction Output is enabled. If enabled, the temperature data set by SetSubtractionTempTable() is subtracted from the current temperature data. The temperature data got by GetTempTable() will be subtracted data. The decoding process will be done by subtracted data.
|
get |
The minimum supported version number of the device firmware. If the version number is X.Y X is assigned to b15..8, Y is assigned to b7..b0.
|
get |
Returns a revision number of the telemetry data that the connected device has.
|
get |
Returns the number of trailing lines which represent Telemetry Data after a thermography block in a frame data.
|
getset |
Whether or not Time-Based AGC.
|
getset |
|
getset |
Whether or not rotating 180 degrees.
|
get |
The Vendor ID (idVendor) as an USB device.
Copyright (C) 2016 Infinitegra, INC. All Rights Reserved. |
Generated by |