SetLevels
|
![]() ![]() ![]() |
minR [in], maxR [in]
|
Lower and upper limits for a monochrome image or for the red channel of a color image. The values are given in percents of the maximum pixel value for the currently selected image format.
|
|
If minR is set to -1, all the limits will be set automatically based on the Auto Fit algorithm.
|
|
If minR is set to -2, all the limits will be adjusted automatically based on the Auto White Balance algorithm.
|
|
minB [in], maxB [in], minG [in], maxG [in]
|
Lower and upper limits for the green and blue channels. If these parameters are omitted or set to zero, the green and blue channels are scaled proportionally with the red channel thus preserving the colors on the image. These parameters are ignored for a monochrome video.
|
S_OK
|
Success
|
E_FAIL
|
Failure.
|
Pixel Format
|
Maximum pixel value
|
Mono8
|
255
|
Mono10, Mono10Packed
|
1023
|
Mono12, Mono12Packed
|
4095
|
Mono14
|
16383
|
Mono16
|
65535
|
Bayer**8, RGB8Packed, BGR8Packed, RGBA8Packed, BGRA8Packed, YUV411PAcked, YUV422Packed, YUV444Packed, RGB8Planar
|
255
|
Bayer**10, RGB10Packed, BGR10Packed, BGR10V1Packed, BGR10V2Packed, RGB10Planar
|
1023
|
Bayer**12, RGB12Packed, BGR12Packed, RGB12Planar
|
4095
|
RGB16Planar
|
65535
|