Is_Measure - THORLABS DCU223x Operation Manual And Sdk

Cdd and cmos cameras
Hide thumbs Also See for DCU223x:
Table of Contents

Advertisement

DCx Cameras

4.3.67 is_Measure

USB 2.0
USB 3.0
Syntax
INT is_Measure(HIDS hCam, UINT nCommand, void* pParam, UINT cbSizeOfParam)
Description
The function allows the measurement of the sharpness in a defined AOI of the current image. To get a sharpness
value the edges in the image are evaluated. The sharpness can only be indicated as a relative value as it depends
on the edges in the current image. An image with less edges will reach the sharpness value of an image with a lot
of edges.
The higher the value, the better the sharpness. The value can be used in comparative measurements to detect
changes in the image acquisition of the same object, e.g. caused by readjusted lenses.
The nCommand input parameter is used to select the function mode. The pParam input parameter depends on the
selected function mode. If you select functions for setting or returning a value, pParam contains a pointer to a
variable of the UINT type. The size of the memory area to which pParam refers is specified in the
cbSizeOfParam input parameter.
Input parameters
hCam
nCommand
IS_MEASURE_CMD_SHARPNESS_AOI_SET
IS_MEASURE_CMD_SHARPNESS_AOI_INQUIRE
IS_MEASURE_CMD_SHARPNESS_AOI_SET_PRESET
pParam
cbSizeOfParam
Content of the MEASURE_SHARPNESS_AOI_INFO structure
UINT
UINT
IS_RECT
Content of the MEASURE_SHARPNESS_AOI_PRESETS enumeration
IS_MEASURE_SHARPNESS_AOI_PRESET_1
Return values
IS_INVALID_PARAMETER
IS_NO_ACTIVE_IMG_MEM
290
USB 2.0
USB 3.0
Camera handle
Pointer to a function parameter, whose function depends on nCommand.
Size (in bytes) of the memory area to which pParam refers.
u32NumberAOI
u32SharpnessValue
rcAOI
Sets an AOI in which the sharpness is measured. In the
image are up to 5 AOIs possible. These AOIs can also
overlap.
(Example 1
Returns information of the AOI, e.g. the sharpness
(Example 2
)
291
Sets different predefined AOIs in the image
)
291
ID of the AOI
Relative sharpness value in the defined AOI
Position and size of the AOI:
s32X: X position
s32Y: Y position
s32Width: AOI width
s32Height: AOI height
Predefined AOI for the harpness measurement (in each
of the four image corner and in the center)
One of the submitted parameters is outside the valid
range or is not supported for this sensor or is not
available in this mode.
No active image memory available. You must set the
memory to active using the is_SetImageMem()
function or create a sequence using the
)
291
(Example 3
© 2013 Thorlabs GmbH

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dcu224xDcc1240xDcc1545mDcc1645c

Table of Contents