Adaptive Tone Mapping (dart E)#
使用此功能#
若要設定 Adaptive Tone Mapping,請將 BslAdaptiveToneMappingMode 參數設為下列其中一個值:
Auto:啟用自動 Adaptive Tone Mapping。Off:停用 Adaptive Tone Mapping。這在例如相機的自動調整導致影像過亮或過暗時非常有用。
範例程式碼#
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK; /* Return value of pylon methods */
/* Disable adaptive tone mapping */
errRes = PylonDeviceFeatureFromString(hdev, "BslAdaptiveToneMappingMode", "Off");
CHECK(errRes);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK; /* Return value of pylon methods */
/* Disable adaptive tone mapping */
errRes = PylonDeviceFeatureFromString(hdev, "BslAdaptiveToneMappingMode", "Off");
CHECK(errRes);