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.ImageProcessingAssembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 69.0.0.0
Syntax
Property Value
Type: Int32Events
| Event Type | Reason |
|---|---|
| CogHistogram Changed | Fires when the value of this property changes. The following state flag may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| 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