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.ImageProcessingAssembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 65.1.0.0
Syntax
Parameters
- percent
- Type: System Int32
The percentage.
Return Value
Type: Int32The returned index.
Exceptions
| Exception | Condition |
|---|---|
| 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