IID_IAMVideoProcAmp
This interface can be used to set the image parameters of a video stream. The uEye DirectShow interface supports the following parameters of IAMVideoProcAmp:
VideoProcAmp_Sharpness |
Set edge enhancement [0,2]* |
VideoProcAmp_Gamma |
Set the gamma value of the image [1,1000]* |
VideoProcAmp_ColorEnable |
Enable color correction [0,1]* |
VideoProcAmp_WhiteBalance |
Set white balance of the camera: Select automatic [0,1] or color temperature [2200,10000]K* The actual value range can be prompted via GetRange (VideoProcAmp_WhiteBalance...). |
VideoProcAmp_BacklightCompensation |
Enable black level correction of the sensor: Select automatic [0,1] or offset [0,255] |
VideoProcAmp_Gain |
Enable analog sensor gain: Select automatic [0,1] or gain value [0,100] |
VideoProcAmp_Brightness |
Enable black level correction of the sensor: Select automatic [0,1] or offset [0,255] |
VideoProcAmp_Contrast |
Enable analog sensor gain: Select automatic [0,1] or gain value [0,100] |
* Software correction in the uEye API
With the flags VideoProcAmp_Flags_Manual and VideoProcAmp_Flags_Auto you specify if a value is set automatically or manually. Thus, e.g. for black level correction you set the offset [0,255] in combination with VideoProcAmp_Flags_Manual. In combination with VideoProcAmp_Flags_Auto you disable/enable the automatic correction [0,1].
Example for manually setting the gain
// ============ btn: Set Gain vai IAMVideoProcAmp ==============================
void uEye_DirectShow_Demo_Dlg::OnBnClickedIamvideoprocampgain()
{
HRESULT status = S_OK;
IAMVideoProcAmp* pIAMVideoProcAmp = NULL;
status = m_pActiveVideoSource->QueryInterface( IID_IAMVideoProcAmp, (void**) &pIAMVideoProcAmp);
status = pIAMVideoProcAmp->Set(VideoProcAmp_Gain, 80, VideoProcAmp_Flags_Manual);
}