Sensor API v2.5.0
Callback definitions

Typedefs

typedef void(__cdecl * RawImageCallback) (char *cameraID, unsigned char *image, int *bytes, HEADER *header)
 
typedef void(__cdecl * ProfileCallback) (char *cameraID, STRUCT_POINT *points, int *point_count, HEADER *header)
 
typedef void(__cdecl * LineCallback) (char *cameraID, int layerId, float *zValues, float *intensityValues, int line_length, double xStep, HEADER *header)
 
typedef void(__cdecl * BatchCallback) (char *cameraID, int layerId, float *zValues, float *intensityValues, int line_length, int batch_length, double xStep, HEADER *lineHeaders)
 

Detailed Description

Typedef Documentation

◆ BatchCallback

typedef void(__cdecl * BatchCallback) (char *cameraID, int layerId, float *zValues, float *intensityValues, int line_length, int batch_length, double xStep, HEADER *lineHeaders)

C# function: public delegate void BatchCallback(
int layerId,
float[] zValues,
float[] intensityValues,
int lineLength,
int batchLength,
double xStep,
Header lineHeaders);

Callback signature for batch results per configured layer.

Parameters
cameraID[in] Identifier for the camera.
layerId[in] Layer identifier (0 is the first layer).
intensityValues[in] Array of intensity values.
line_length[in] Length of the array.
batch_length[in] Total count of line profiles in the array.
xStep[in] X resolution in micrometers.
lineHeaders[in] Collected header information of each line profile belonging for the batch run.

◆ LineCallback

typedef void(__cdecl * LineCallback) (char *cameraID, int layerId, float *zValues, float *intensityValues, int line_length, double xStep, HEADER *header)

C# function: delegate void LineCallback(
int layerId,
float[] zValues,
float[] intensityValues,
int lineLength,
double xStep,
Header header);

Callback signature for line reception per configured layer.

Parameters
cameraID[in] Identifier for the camera.
layerId[in] Layer identifier (0 is the first layer).
zValues[in] Array of heights.
intensityValues[in] Array of intensity values.
line_length[in] Length of the array.
xStep[in] X resolution in micrometers.
header[in] Additional information related to the line.

◆ ProfileCallback

typedef void(__cdecl * ProfileCallback) (char *cameraID, STRUCT_POINT *points, int *point_count, HEADER *header)

C# function:  delegate void ProfileCallback(IList<Point> profile, Header header);

Callback signature for profile reception.

Parameters
cameraID[in] Identifier for the camera.
points[in] Pointer to the received profile data.
point_count[in] Number of points in the profile.
header[in] Additional information related to the profile.

◆ RawImageCallback

typedef void(__cdecl * RawImageCallback) (char *cameraID, unsigned char *image, int *bytes, HEADER *header)

C# function:  delegate void RawImageCallback(byte[] image, int bytes, Header header);

Callback signature for raw image reception.

Parameters
cameraID[in] Identifier of the camera.
image[in] Pointer to the received 8-bit grayscale image. Each pixel is represented by a 8-bit element. The array is composed so that first W elements are the top row, second W elements are next row etc. W is sensor image height that can be found from the sensor data sheet.
bytes[in] Number of bytes in the image.
header[in] Additional information related to the raw image.