跳转到内容

Adaptive Tone Mapping (dart E)#

通过相机的 Adaptive Tone Mapping 功能,您可以启用或禁用由图像传感器执行的自适应色调映射。

该功能的使用#

To configure adaptive tone mapping, set the BslAdaptiveToneMappingMode 参数设置为以下值:

  • Auto: Enables automatic adaptive tone mapping.
  • 熄灭: Disables adaptive tone mapping. This can be useful, e.g., if the camera's automatic adjustments produce images that are too bright or too dark.

示例代码#

// 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);