CogHistogramResult GetInverseCumulativeGreyLevel Method Cognex VisionPro 9.8 SR1
Returns the histogram bin index such that the specified percentage of pixels fall at or below that histogram bin index. The returned grey level is guaranteed to be at least the minimum histogram bin index that contains a non-zero pixel count.

Namespace: Cognex.VisionPro.ImageProcessing
Assembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 75.0.0.0
Syntax

public int GetInverseCumulativeGreyLevel(
	int percent
)

Return Value

Type: Int32

The returned index.

Exceptions

ExceptionCondition
ArgumentException

percent is < 0 or > 100.

Remarks

Returns the histogram bin index such that the specified percentage of pixels fall at or below that histogram bin index. The returned grey-level is guaranteed to be at least the minimum histogram bin index that contains a non-zero pixel count.

See Also