Exemplo n.º 1
0
        public List <Affinity_Matrix> affinity_Matrices = new List <Affinity_Matrix>();//校准数据集合

        /// <summary>
        /// 加载矫正数组
        /// </summary>
        public void Load_Affinity_Matrix()
        {
            AffinityCountOK = false;//清除 仿射矫正矩阵数据匹配标志
            string File_Name = "Correct_File/Gts_Affinity_Matrix_Three.xml";
            //file path
            string File_Path = @"./\Config/" + File_Name;

            //read file
            if (File.Exists(File_Path))
            {
                //获取矫正数据
                affinity_Matrices = new List <Affinity_Matrix>(Common_Collect.Reserialize <Affinity_Matrix>(File_Path));
                if (affinity_Matrices.Count != Program.SystemContainer.SysPara.Gts_Affinity_Col_X * Program.SystemContainer.SysPara.Gts_Affinity_Row_Y)
                {
                    affinity_Matrices = new List <Affinity_Matrix>();
                    LogInfo?.Invoke("Gts Affinity 矫正文件文件不匹配!!!,禁止加工,请检查!");
                    return;
                }
                AffinityCountOK = true;//置位 仿射矫正矩阵数据匹配标志
                LogInfo?.Invoke("Gts Affinity 矫正文件加载成功!!!,数据数量:" + affinity_Matrices.Count);
            }
            else
            {
                affinity_Matrices = new List <Affinity_Matrix>();
                LogInfo?.Invoke("Gts Affinity 矫正文件文件不存在!!!,禁止加工,请检查!");
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 保存刀具参数
 /// </summary>
 public void Save_Scissor_Para()
 {
     CSV_RW.SaveCSV_NoDate(Common_Collect.ListToDt <Tech_Parameter>(ScissorList), "Scissor_Parameter/ScissorList.csv");//刀具参数 保存
 }