ccVideoFormat
ccContrastBrightnessProp::contrastBrightness()
- Contrast (0~1) -> Gain
- Brightness (0~1) -> Black Level
- Exposure -> Exposure Time
-
White balance -> Balance Ratio
m_phTempFifo->properties().contrastBrightness(m_dContrast, m_dBrightness); m_phTempFifo->properties().exposure(m_dExposureMs / 1000.0);
Black Level
The Black Level camera feature allows you to change the overall brightness of an image. Adjusting the camera’s black level will result in an offset to the pixel’s gray values output by the camera. Basler recommends setting the black level to 0 before using any of the color enhancement features.
Gain
The Gain camera feature allows you to increase the brightness of the images output by the camera. Increasing the gain increases all pixel values of the image. Gain amplifies each pixel readout by a certain factor. Accordingly, signal and noise are both amplified. Increasing gain will increase the image contrast. Increasing gain will increase the image brightness. Unless your application requires extreme contrast, make sure that detail remains visible in the brightest portions of the image when increasing gain.