跳至內容
測試伺服器
開發伺服器

Adaptive Tone Mapping (dart E)#

「Adaptive Tone Mapping 」相機功能可讓您啟用或停用影像感測器執行的自適應色調映射。

使用功能#

若要設定自適應色調映射,請將 BslAdaptiveToneMappingMode 參數設定為以下值之一:

  • Auto: 啟用自動適應性色調映射。
  • Off: 停用自適應色調映射。例如,當相機的自動調整功能導致影像過亮或過暗時,此功能便會派上用場。

範例程式碼#

// Disable adaptive tone mapping
camera.BslAdaptiveToneMappingMode.SetValue(BslAdaptiveToneMappingMode_Off);
INodeMap& nodemap = camera.GetNodeMap();
// Disable adaptive tone mapping
CEnumParameter(nodemap, "BslAdaptiveToneMappingMode").SetValue("Off");
// Disable adaptive tone mapping
camera.Parameters[PLCamera.BslAdaptiveToneMappingMode].SetValue(PLCamera.BslAdaptiveToneMappingMode.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);
# Disable adaptive tone mapping
camera.BslAdaptiveToneMappingMode.Value = "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);