namespace MainShell.Vision
{
    /// <summary>
    /// Die 定位参数
    /// </summary>
    public sealed class FindDieParameters : TemplateVisionAlgorithmParameters
    {
        public FindDieParameters()
        {
            ScoreThreshold = MinScore;
            SerialNumber = string.Empty;
            CurrentRuler = new SemiconductorVisionAlgorithm.SemiParams.Point(0.0, 0.0);
        }

        /// <summary>
        /// 标定序列号。
        /// </summary>
        public string SerialNumber { get; set; }

        /// <summary>
        /// 当前尺坐标。
        /// </summary>
        public SemiconductorVisionAlgorithm.SemiParams.Point CurrentRuler { get; set; }

        /// <summary>
        /// X 方向重叠比例。
        /// </summary>
        public double OverlapX { get; set; }

        /// <summary>
        /// Y 方向重叠比例。
        /// </summary>
        public double OverlapY { get; set; }

        /// <summary>
        /// Die 宽度。
        /// </summary>
        public double DieWidth { get; set; }

        /// <summary>
        /// Die 高度。
        /// </summary>
        public double DieHeight { get; set; }

        /// <summary>
        /// 分数阈值。
        /// </summary>
        public double ScoreThreshold { get; set; }

        /// <summary>
        /// 允许角度偏差（度）
        /// </summary>
        public double? AngleTolerance { get; set; }
    }
}
