Please enable JavaScript to view this site.

uEye .NET Manual 4.97

Class

uEye.FocusPeakSearchAlgorithm

Accessible

Camera.Focus.PeakSearchAlgorithm.Set

Syntax

uEye.FocusPeakSearchAlgorithm.Set(uEye.Defines.AutoFocusPeakSearchAlgorithm algorithm)

hint_info

This class is currently only supported by the uEye LE USB 3.1 Gen 1 AF camera models.

Description

Sets the peak search algorithm for the autofocus.

Parameter

algorithm

Peak search algorithm to be set:

uEye.Defines.AutoFocusPeakSearchAlgorithm.FullScan
Within the preset interval range, the focus function scans with a constant step width for an optimal result (step width: hysteresis).

uEye.Defines.AutoFocusPeakSearchAlgorithm.GlobalSearch
Within the preset interval range, the focus function completely scans with medium step width and the maximum that occurred is memorized. Based on the maximum, the interval range and the step width, the interval range and the step width are reduced and the scan is repeated within this interval. This process is continued until the interval range is less than or equal to the set hysteresis.

uEye.Defines.AutoFocusPeakSearchAlgorithm.GoldenRationSearch
Within the preset interval range, the focus function repeatedly divides into new intervals using the Golden Ratio. The interval range is decreased with each new calculation. This process is continued until the interval range is less than or equal to the set hysteresis.

uEye.Defines.AutoFocusPeakSearchAlgorithm.HillClimbingSearch
Within the preset interval range, the focus function scans the register values for a maximum with medium step width until two falling sharpness values occur at the last two steps. Based on these values and the step width, the interval range and step width are reduced and the scan is repeated within this interval. This process is continued until the interval range is less than or equal to the set hysteresis.