Exposure Auto(dart E)#
Exposure Auto와 Gain Auto를 동시에 사용하려면 Auto Function Profile 기능을 사용하여 두 기능의 효과가 균형을 이루는 방식을 지정하십시오.
노출 시간을 수동으로 조절하려면 Exposure Time 기능을 사용하십시오.
기능 사용#
Exposure Auto 활성화 또는 비활성화#
Exposure Auto 자동 기능을 활성화하거나 비활성화하려면 다음을 설정하십시오. ExposureAuto 파라미터를 다음 Operating Mode 중 하나로 설정하십시오.
Continuous: 이미지가 취득되는 동안 카메가가 exposure time을 지속적으로 조절합니다.Off: Exposure Auto 자동 기능을 비활성화합니다. Exposure time은 마지막 자동 또는 수동 조절로 얻어진 값으로 유지됩니다.
정보
- daA2500-60mc 카메라에서는 Exposure Auto를 활성화 또는 비활성화하면 Gain Auto도 함께 활성화 또는 비활성화됩니다.
- 카메라가 연속으로 사진을 촬영할 때, 자동 기능은 약간의 지연 후 작동합니다. 처음 몇 장의 사진에는 자동 기능이 적용되지 않을 수 있습니다.
상한값 지정하기#
정보
이 기능은 daA…mci 카메라에서만 사용할 수 있습니다.
자동 기능은 다음을 조정합니다. ExposureTime 지정된 한계 내에서 파라미터 값을 설정합니다.
상한값을 변경하려면 다음을 설정하십시오. AutoExposureTimeUpperLimit 파라미터를 원하는 값(µs 단위)으로 설정합니다.
자동 조절 과정 동안 노출 시간은 지정된 한도를 초과하지 않습니다.
상한이 높게 설정되면 카메라의 프레임 레이트가 감소할 수 있습니다.
목표 밝기 값 지정#
정보
이 기능은 daA…mci 카메라에서만 사용할 수 있습니다.
자동 기능은 목표 밝기 값, 즉 평균 회색조 값에 도달할 때까지 exposure time을 조절합니다.
목표값을 지정하려면 다음을 사용하십시오. AutoTargetBrightness 파라미터에 HTML 로그 파일(*.html)의 경로와 이름을 지정할 수 있습니다.
정보
- 목표값 계산에는 다른 이미지 최적화(예: Gamma. 설정된 이미지 최적화 방식에 따라, 카메라에서 출력되는 이미지의 평균 회색값은 목표값이 나타내는 값보다 상당히 낮거나 높을 수 있습니다.
- 이 카메라는 또한
AutoTargetBrightness~를 제어하는 매개변수 Gain Auto 자동 기능. Exposure Auto를 사용하려면 Gain Auto 동시에 다음을 사용합니다. Auto Function Profile 기능을 사용하여 두 가지 효과의 균형이 맞춰지는 정도를 지정할 수 있습니다.
샘플 코드#
// Set the Exposure Auto auto function to its maximum upper limit
double maxUpperLimit = camera.AutoExposureTimeUpperLimit.GetMax();
camera.AutoExposureTimeUpperLimit.SetValue(maxUpperLimit);
// Set the target brightness value to 0.6
camera.AutoTargetBrightness.SetValue(0.6);
// Enable Exposure Auto by setting the operating mode to Continuous
camera.ExposureAuto.SetValue(ExposureAuto_Continuous);
INodeMap& nodemap = camera.GetNodeMap();
// Set the Exposure Auto auto function to its maximum upper limit
double maxUpperLimit = CFloatParameter(nodemap, "AutoExposureTimeUpperLimit").GetMax();
CFloatParameter(nodemap, "AutoExposureTimeUpperLimit").SetValue(maxUpperLimit);
// Set the target brightness value to 0.6
CFloatParameter(nodemap, "AutoTargetBrightness").SetValue(0.6);
// Enable Exposure Auto by setting the operating mode to Continuous
CEnumParameter(nodemap, "ExposureAuto").SetValue("Continuous");
// Set the Exposure Auto auto function to its maximum upper limit
double maxUpperLimit = camera.Parameters[PLCamera.AutoExposureTimeUpperLimit].GetMaximum();
camera.Parameters[PLCamera.AutoExposureTimeUpperLimit].SetValue(maxUpperLimit);
// Set the target brightness value to 0.6
camera.Parameters[PLCamera.AutoTargetBrightness].SetValue(0.6);
// Enable Exposure Auto by setting the operating mode to Continuous
camera.Parameters[PLCamera.ExposureAuto].SetValue(PLCamera.ExposureAuto.Continuous);
/* 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 */
double maxUpperLimit = 0;
/* Set the Exposure Auto auto function to its maximum upper limit */
errRes = PylonDeviceGetFloatFeatureMax(hdev, "AutoExposureTimeUpperLimit", &maxUpperLimit);
CHECK(errRes);
errRes = PylonDeviceSetFloatFeature(hdev, "AutoExposureTimeUpperLimit", maxUpperLimit);
CHECK(errRes);
/* Set the target brightness value to 0.6 */
errRes = PylonDeviceSetFloatFeature(hdev, "AutoTargetBrightness", 0.6);
CHECK(errRes);
/* Enable Exposure Auto by setting the operating mode to Continuous */
errRes = PylonDeviceFeatureFromString(hdev, "ExposureAuto", "Continuous");
CHECK(errRes);
# Set the Exposure Auto auto function to its maximum upper limit
maxUpperLimit = camera.AutoExposureTimeUpperLimit.Max
camera.AutoExposureTimeUpperLimit.Value = maxUpperLimit
# Set the target brightness value to 0.6
camera.AutoTargetBrightness.Value = 0.6
# Enable Exposure Auto by setting the operating mode to Continuous
camera.ExposureAuto.Value = "Continuous"
pylon Viewer를 사용하여 매개변수를 간편하게 설정할 수도 있습니다.