CogHistogramResult Mode Property Cognex VisionPro 9.22 SR1
Returns the histogram bin index of the bin containing the modal (most common) pixel value in the histogram. This is the histogram bin index with the greatest pixel count.

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

public int Mode { get; }

Property Value

Type: Int32
Remarks

Returns the histogram bin index of the bin containing the modal (most common) pixel value in the histogram. This is the histogram bin index with the greatest pixel count.

See Also