2d7cf17a3b
新增暗场校正和亮场校正帧数配置属性(默认 64,范围 1-128),config 加载校正帧数; 修正探测器IsConnected连接状态的判断逻辑。
50 lines
1.8 KiB
C#
50 lines
1.8 KiB
C#
namespace XP.Hardware.Detector.Abstractions
|
||
{
|
||
/// <summary>
|
||
/// 校正能力描述 | Correction capabilities description
|
||
/// 描述探测器支持的校正行为和参数范围,不同探测器可返回不同配置
|
||
/// </summary>
|
||
public class CorrectionCapabilities
|
||
{
|
||
/// <summary>
|
||
/// 是否需要在校正前停止采集 | Whether to stop acquisition before correction
|
||
/// </summary>
|
||
public bool RequiresStopBeforeCorrection { get; set; } = true;
|
||
|
||
/// <summary>
|
||
/// 是否需要在暗场校正前应用参数 | Whether to apply parameters before dark correction
|
||
/// </summary>
|
||
public bool RequiresParameterApplyBeforeDark { get; set; } = true;
|
||
|
||
/// <summary>
|
||
/// 亮场校正后是否自动执行坏像素校正 | Auto bad pixel correction after gain correction
|
||
/// </summary>
|
||
public bool AutoBadPixelAfterGain { get; set; } = true;
|
||
|
||
/// <summary>
|
||
/// 停止采集后等待时间(ms)| Post-stop delay (ms)
|
||
/// </summary>
|
||
public int PostStopDelayMs { get; set; } = 500;
|
||
|
||
/// <summary>
|
||
/// 暗场校正帧数(从配置文件加载)| Dark correction frame count (loaded from config)
|
||
/// </summary>
|
||
public int DarkFrameCount { get; set; } = 64;
|
||
|
||
/// <summary>
|
||
/// 亮场校正帧数(从配置文件加载)| Gain correction frame count (loaded from config)
|
||
/// </summary>
|
||
public int GainFrameCount { get; set; } = 64;
|
||
|
||
/// <summary>
|
||
/// 校正帧数最小值 | Correction frame count minimum
|
||
/// </summary>
|
||
public int FrameCountMin { get; set; } = 1;
|
||
|
||
/// <summary>
|
||
/// 校正帧数最大值 | Correction frame count maximum
|
||
/// </summary>
|
||
public int FrameCountMax { get; set; } = 128;
|
||
}
|
||
}
|