Returns a threshold using data from this histogram. The computed threshold is appropriate for segmenting an image into object and background pixels and is often used to compute a segmentation threshold for blob analysis. The returned threshold divides the histogram data into two groups such that the combined variance within the groups is a minimum.
Namespace: Cognex.VisionPro.ImageProcessingAssembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 80.0.0.0
Syntax
Return Value
Type: Int32The computed threshold value.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | If the histogram contains only empty bins. |
See Also