CogHistogram NumBins Property Cognex VisionPro 9.8 SR1
Specifies the size of the histogram. When an image is analyzed, each histogram bin is computed up to index NumBins-1. Pixel values that are greater than or equal to NumBins will be included in the total number of samples and placed in the highest bin.

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

public int NumBins { get; set; }

Property Value

Type: Int32
Events

Event TypeReason
CogHistogram Changed

Fires when the value of this property changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

The new value is < 1.

Remarks

Sets or gets the size of the histogram. When an image is sampled, each histogram bin is summed up to index NumBins-1. Pixel values that are greater than or equal to NumBins will be included in the total number of samples and placed in the highest bin.

Default Value: 256 for 8-bit greyscale images.

See Also