Enumeration of the histogram bin processing modes.
Namespace: Cognex.VisionPro.ImageProcessingAssembly: Cognex.VisionPro.ImageProcessing (in Cognex.VisionPro.ImageProcessing.dll) Version: 75.0.0.0
Syntax
Members
| Member name | Value | Description | |
|---|---|---|---|
| Compatibility | 1 | Compute a histogram with the number of bins equal to NumBins. Any observed pixel with a greyscale value greater than or equal to NumBins will cause the count in the last bin (index NumBins - 1) to be incremented. This means that if NumBins is set to 2, then all pixels with a greyscale value greater than or equal to 2 will be included in the count in the histogram bin with index 1. This behavior was once but is no longer the default. | |
| Uniform | 2 | Compute a histogram with NumBins many bins, each of which corresponds to an approximately equal sized number of possible greyscale values spread uniformly across the entire dynamic range of the current input image. It is a run time error to call CogHistogram's Execute method in this mode with NumBins set to a value larger than the current input image's maximum greyscale value plus one. | |
| Auto | 3 | Compute a histogram with the number of bins set at runtime to equal the full dynamic range of the current input image: 256 bins for a CogImage8Grey, 256 bins for a CogImage16Grey with Encoding set to Grey8, 1024 bins for a CogImage16Grey with Encoding set to Grey10, 4096 bins for a CogImage16Grey with Encoding set to Grey12, 16384 bins for a CogImage16Grey with Encoding set to Grey14, and 65536 bins for a CogImage16Grey with Encoding set to Grey16. The value of the NumBins property will be ignored in this mode. This mode is the default for CogHistogram. |
See Also