CogHistogramResult GetInverseCumulativeGreyLevel Method Cognex VisionPro 9.23
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: 91.0.0.0
Syntax

public int GetInverseCumulativeGreyLevel(
	int percent
)

Parameters

percent
Type: System Int32

The percentage.

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