Пример #1
0
        public void ShowTestResult(WriteableBitmap chartPhoto)
        {
            AbstractTestChart ab = null;

            if ((chartPhoto != null) && testHelper.ChartTestList.ContainsKey(chartPhoto))
            {
                ab = testHelper.ChartTestList[chartPhoto];
            }
            testHelper.ShowTestResult(buttonColorTrendValue, "色彩趋向差异", ab);
            testHelper.ShowTestResult(buttonNoise, "噪点", ab);
            testHelper.ShowTestResult(buttonWhiteBalance, "白平衡误差", ab);
        }
Пример #2
0
        public void ShowTestResult(WriteableBitmap chartPhoto)
        {
            AbstractTestChart ab = null;

            if ((chartPhoto != null) && testHelper.ChartTestList.ContainsKey(chartPhoto))
            {
                ab = testHelper.ChartTestList[chartPhoto];
            }
            testHelper.ShowTestResult(buttonRayleiResolution, "中央瑞利分辨率", ab);
            testHelper.ShowTestResult(buttonHMTF, "中央分辨率(水平线)", ab);
            testHelper.ShowTestResult(buttonVMTF, "中央分辨率(垂直线)", ab);
            testHelper.ShowTestResult(buttonHDispersiveness, "色散(水平线)", ab);
            testHelper.ShowTestResult(buttonVDispersiveness, "色散(垂直线)", ab);
        }
Пример #3
0
        //public void TestFinish()
        //{
        //    //ResultPanel.Height = 25 * 11;
        //    //IsTested = true;
        //    //TestProject.TestHtml.Add(WriteHTML());
        //    time.Tick -= new EventHandler(time_Tick);
        //    processbar.Value = 100;
        //    IsTesting = false;
        //    EndTime = DateTime.Now;
        //    pi = 0;
        //    ToolTipService.SetToolTip(processbar, "本次测试耗时(ms):" + (EndTime - BeginTime).TotalMilliseconds.ToString());

        //    //time.Start();
        //}

        //public void ShowTestResult()
        //{
        //    ShowTestResult(buttonAberration, "畸变");
        //    ShowTestResult(buttonBrightChanges, "亮度一致性");
        //    ShowTestResult(buttonColorTrend, "色彩趋向差异");
        //    ShowTestResult(buttonHDispersiveness, "中央色散");
        //    ShowTestResult(buttonVDispersiveness, "边缘色散");
        //    ShowTestResult(buttonHEdgeResoveLines, "中央分辨率");
        //    ShowTestResult(buttonVEdgeResoveLines, "边缘分辨率");
        //    ShowTestResult(buttonLatitude, "动态范围");
        //    ShowTestResult(buttonNoise, "噪点");
        //    ShowTestResult(buttonPurplePercent, "紫边像素比例");
        //    ShowTestResult(buttonWaveQ, "成像一致性");
        //    ShowTestResult(buttonWhiteBanlance, "白平衡能力");

        //}

        //public void ShowTestResult(Button b,string Name)
        //{
        //    List<IParameter> pl;
        //    pl = ParameterList.Where(v => v.Name == Name).ToList();
        //    if ((pl != null) && pl.Count > 0)
        //    {
        //        b.Content = Name + pl.Average(v=>v.Value).ToString() + pl[0].Dimension;
        //        b.SetValue(ToolTipService.ToolTipProperty, pl[0].Memo+"(平均耗时:"+pl.Average(v=>v.SpendTime).ToString()+")");

        //    }
        //}
        public void ShowTestResult(WriteableBitmap chartPhoto)
        {
            AbstractTestChart ab = null;

            if ((chartPhoto != null) && testHelper.ChartTestList.ContainsKey(chartPhoto))
            {
                ab = testHelper.ChartTestList[chartPhoto];
            }
            testHelper.ShowTestResult(buttonAberration, "畸变", ab);
            testHelper.ShowTestResult(buttonBrightChanges, "亮度一致性", ab);
            testHelper.ShowTestResult(buttonColorTrend, "色彩趋向差异", ab);
            testHelper.ShowTestResult(buttonHDispersiveness, "中央色散", ab);
            testHelper.ShowTestResult(buttonVDispersiveness, "边缘色散", ab);
            testHelper.ShowTestResult(buttonHEdgeResoveLines, "中央分辨率", ab);
            testHelper.ShowTestResult(buttonVEdgeResoveLines, "边缘分辨率", ab);
            testHelper.ShowTestResult(buttonLatitude, "动态范围", ab);
            testHelper.ShowTestResult(buttonNoise, "噪点", ab);
            testHelper.ShowTestResult(buttonPurplePercent, "紫边像素比例", ab);
            testHelper.ShowTestResult(buttonWaveQ, "成像一致性", ab);
            testHelper.ShowTestResult(buttonWhiteBanlance, "白平衡能力", ab);
        }