Please enable JavaScript to view this site.

uEye DirectShow 4.97

IID_IuEyeFocus

This interface provides special functions for controlling the focus of some uEye cameras that are not covered by the DirectShow standard.

For the USB uEye XS, you can also use the focus measure window for defining which area should be focused. The position of the measure window can be freely defined. The measure window of the UI-1007XS has a fixed size, which can be queried via Focus_GetAutoFocusZoneSizeMin and Focus_GetAutoFocusZoneSizeMax.

To use the interface, you must integrate the uEyeCaptureInterface.h header file into your project.

hint_info

Setting the focus is currently supported by the following models:

UI-1007XS

uEye LE USB 3.1 Gen 1 AF (active focus)

IuEyeFocus provides the following functions:

Focus_IsAutoFocusSupported

Returns if the auto focus function is supported.

Focus_GetAutoFocus

Returns if the auto focus is enabled.

Focus_SetAutoFocus

Enables auto focus.

Focus_GetAutoFocusStatus

Returns the state of the auto focus.

Focus_SetEnableAutoFocusOnce

With active auto focus: auto focus is triggered once.

Focus_GetManualFocus

Returns the current set manual focus point.

Focus_GetManualFocusRange

Returns the minimum and maximum value and the increment for manually setting the focus point.

Focus_SetManualFocus

Sets a manual focal point.

Focus_GetAutoFocusZone

Returns the current measuring window for the auto focus.

Focus_SetAutoFocusZone

Sets the measuring window for the auto focus.

Focus_GetAutoFocusZoneDefault

Returns the default measuring window.

Focus_GetAutoFocusZonePosMin

Returns the minimum possible position for the measuring window.

Focus_GetAutoFocusZonePosMax

Returns the maximum possible position for the measuring window.

Focus_GetAutoFocusZonePosInc

Returns the increment for the position of the measuring window.

Focus_GetAutoFocusZoneSizeMin

Returns the minimum size of the measuring window.

Focus_GetAutoFocusZoneSizeMax

Returns the maximum size of the measuring window.

Focus_GetAutoFocusZoneSizeInc

Returns the increment for the size of the measuring window.

Focus_GetAutoFocusZoneWeightCount

Returns the number of zones in the measuring window.