Digital black is a technique used in image processing to adjust the black point before gamma correction is applied. Gamma correction often causes dark areas of an image to appear gray by lifting the overall brightness and redistributing tonal values. By pulling down the black point with digital black, the noisy pixels are eliminated first so the gamma correction does not multiply the noise.
More...
Digital black is a technique used in image processing to adjust the black point before gamma correction is applied. Gamma correction often causes dark areas of an image to appear gray by lifting the overall brightness and redistributing tonal values. By pulling down the black point with digital black, the noisy pixels are eliminated first so the gamma correction does not multiply the noise.
- Note
- This feature is only applied in the host.
Example to use the digital black feature:
double min = 0.0;
double max = 0.0;
{
}
{
}
double value = 0.0;
{
}
◆ peak_IPL_DigitalBlack_Get()
Get the host digital black value.
- Note
- Digital black values are represented as factors relative to the range defined by the bit depth of the processed pixel format, with 1.0 indicating the maximum possible pixel value for that bit depth.
- Parameters
-
| [in] | hCam | The camera handle. |
| [out] | digitalBlack | The digital black value. |
- Returns
- PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
-
PEAK_STATUS_INVALID_PARAMETER
digitalBlack is an invalid pointer.
-
PEAK_STATUS_INVALID_HANDLE
hCam is an invalid camera handle.
-
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
-
PEAK_STATUS_ERROR An unexpected internal error occurred.
- Since
- 1.12
◆ peak_IPL_DigitalBlack_GetRange()
Get the current range of valid host digital black values.
- Note
- Digital black values are represented as factors relative to the range defined by the bit depth of the processed pixel format, with 1.0 indicating the maximum possible pixel value for that bit depth.
- Parameters
-
| [in] | hCam | The camera handle. |
| [out] | minDigitalBlack | The minimum digital black value. |
| [out] | maxDigitalBlack | The maximum digital black value. |
- Returns
- PEAK_STATUS_SUCCESS Operation was successful; no error occurred.
-
PEAK_STATUS_INVALID_PARAMETER At least one of
minDigitalBlack or maxDigitalBlack is an invalid pointer.
-
PEAK_STATUS_INVALID_HANDLE
hCam is an invalid camera handle.
-
PEAK_STATUS_NOT_INITIALIZED The library is not initialized.
-
PEAK_STATUS_ERROR An unexpected internal error occurred.
- Since
- 1.12
◆ peak_IPL_DigitalBlack_Set()