Adaptive Tone Mapping (dart E)#
使用功能#
若要設定自適應色調映射,請將 BslAdaptiveToneMappingMode 參數設定為以下值之一:
Auto: 啟用自動適應性色調映射。Off: 停用自適應色調映射。例如,當相機的自動調整功能導致影像過亮或過暗時,此功能便會派上用場。
範例程式碼#
/* 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);