Please enable JavaScript to view this site.

uEye .NET Manual 4.97

Class

uEye.FocusSharpnessAlgorithm

Accessible

Camera.Focus.SharpnessAlgorithm.Set

Syntax

uEye.FocusSharpnessAlgorithm.Set(uEye.Defines.AutoFocusSharpnessAlgorithm algorithm)

hint_info

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

Description

Sets the algorithm for sharpness calculation of the autofocus.

Parameter

algorithm

Sharpness algorithm to be set:

uEye.Defines.AutoFocusSharpnessAlgorithm.HistogramVariance
Standard deviation of the gray values in the histogram of the mean value.

uEye.Defines.AutoFocusSharpnessAlgorithm.MeanScore
Summation of the difference between two mean values from two pixel values each in x- and y-direction.

uEye.Defines.AutoFocusSharpnessAlgorithm.Tenengrad
Sobel factors in x- and y-direction and summation of the euclidean distances.