Contrastthresholdmode – Adept AdeptSight Reference Guide User Manual
Page 142

ContrastThresholdMode
VPARAMETER
302
Selects the method used to compute the threshold used for detecting edges in the input image.
Syntax
Micro V+
VPARAMETER (sequence_id, tool_id, 302, index_id, object_id) = value
value = VPARAMETER (sequence_id, tool_id, 302, index_id, object_id)
V+
VPARAMETER (sequence_id, tool_id, 302, index_id, object_id) $ip = value
value = VPARAMETER ($ip, sequence_id, tool_id, 302, index_id, object_id)
Type
Long
Remarks
By default, the tool selects a ContrastThresholdMode based on image content to provide flexibility to
variations in image lighting conditions and contrast. Adaptive threshold modes are generally
recommended. A fixed-value contrast threshold should only be used when adaptive values do not
provide satisfactory results.
Range
The valid range for this property is as follows:
Value Contrast Threshold Mode Name
Description
0
hsContrastThresholdAdaptiveLowSensitivity
Uses a low sensitivity adaptive threshold for
detecting edges. Adaptive Low Sensitivity
reduces the amount of noisy edges but may
also cause significant edges to be unde-
tected.
1
hsCon-
trastThresholdAdaptiveNormalSensitivity
Uses a normal sensitivity adaptive thresh-
old for detecting edges.
ContrastThresholdMode
AdeptSight Reference Guide, v3.2.x, Updated: 5/8/2012
Page 142