Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 73.0.0.0
Property Value
Type: DoubleImplements
ICogAcqBrightness Brightness| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when the brightness is changed. The following state flag may be affected: |
| Exception | Condition |
|---|---|
| ArgumentException | Value is < 0 or Value > 1.0. |
Sets or gets the brightness level. This value ranges from 0.0 (darkest) to 1.0 (lightest).
Not all FIFOs support this property. Check whether the FIFO supports it, as in the example, before using this property.
The contrast and brightness values control how different light levels are mapped to pixel values. Assume that you are working with an 8-bit image. All the light levels entering the camera must be mapped to a pixel value from 0 to 255.
Brightness determines where the center of the contrast mapping window falls relative to the range of light levels. Brightness values closer to 0.0 place the center of the mapping window toward the higher light levels, resulting in a darker image.
Brightness values closer to 1.0 place the window toward the lower light levels, resulting in a brighter image.
For multichannel FIFOs, Brightness sets the brightness of all channels to the same value. To set the brightness of individual channels, use ICogAcqBrightnessMultiChannel.SetBrightnessMultiChannel(Int32, Double).
Default Value: CDC-50 camera: 0.58 CDC-100 camera: 0.50 CDC-200 camera: 0.50 All other cameras: 1.0