EasyManua.ls Logo

Alkeria NECTA Series - Luma; Time Stamp

Default Icon
140 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
8. Capturing Images 115
To apply a user LUT, you must save it rst into the camera; the following example stores a LUT into the
camera and selects it:
Example Code 8.27 | Store lut into the camera
float[] lut = new float[device.UserLut.LutLenght]; // Create a linear sample LUT
for (int i = 0; i < device.UserLut.LutLenght; i++)
lut[i] = (float)i / ((float)device.UserLut.LutLenght - 1);
if (device.UserLut.LutWritable(1)) // If LUT 1 is writable
device.UserLut.Write(1, lut); // Write LUT 1 to camera memory
device.LutIndex = 1; // Select LUT 1
device.GammaEnabled = false; // Disable gamma to enable LUTs
Note
In user application a good approach is setting LUT index when the camera is
not acquiring, since during the LUT loading operation NECTA could ignore ex-
ternal triggers and/or lose frames.
8.10.14 Luma
Luma is a read-only control that returns the average image luminance; Luma is evaluated within the
currently selected LMR (see Section 7.1). The returned value is related to the last acquired image when
the request was received by the camera.
Example Code 8.28 | Read the Luma value of the last image
uint currentLuma = device.Luma;
Note
Color cameras evaluate Luma using conversion factors R = 0.299, G = 0.587,
B = 0.114.
8.10.15 Time Stamp
TimeStamp is a read-only control that returns the status at runtime of timeStamp counter. TimeStamp
is a 16-bit unsigned integer generated from a 1 ms timer and cleared when acquisition is started.

Table of Contents