public void TestGray() { if (!testHelper.TestChartNull()) { return; } try{ //progressbar.Value = 0; BeginTime = DateTime.Now; //t.setChart(ChartPhoto.getPhoto()); double d = (testHelper.CurrentChart as GrayChart).getBrightChangesValue(); //TextValue.Text = d.ToString(); EndTime = DateTime.Now; LParameter lp = testHelper.getNewParameter("灰度测试卡", d, BeginTime, EndTime); lp.Name = "亮度变化"; lp.Memo = "查看照片亮度变化"; lp.Dimension = ""; //lp.TestChart = testHelper.CurrentChart.ChartPhoto; testHelper.ParameterList.Add(lp); testHelper.ShowTestResult(TextValue, "亮度变化", null); TestGB(); //progressbar.Value = 100; } catch (Exception xe)//未知的异常 { testHelper.ProcessError(xe, "灰度计算错误"); } }
public void ShowTestResult(WriteableBitmap chartPhoto) { AbstractTestChart ab = null; if ((chartPhoto != null) && testHelper.ChartTestList.ContainsKey(chartPhoto)) { ab = testHelper.ChartTestList[chartPhoto]; } testHelper.ShowTestResult(textBlock5Aberration, "国标畸变测试0.5处", ab); testHelper.ShowTestResult(textBlock9Aberration, "国标畸变测试0.9处", ab); }
public void ShowTestResult(WriteableBitmap chartPhoto) { AbstractTestChart ab = null; if ((chartPhoto != null) && testHelper.ChartTestList.ContainsKey(chartPhoto)) { ab = testHelper.ChartTestList[chartPhoto]; } testHelper.ShowTestResult(TextCenterL, "中央平均明度", ab); testHelper.ShowTestResult(textBlockDE, "曝光量误差", ab); }
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); }
public void ShowTestResult(WriteableBitmap chartPhoto) { AbstractTestChart ab = null; if ((chartPhoto != null) && testHelper.ChartTestList.ContainsKey(chartPhoto)) { ab = testHelper.ChartTestList[chartPhoto]; } testHelper.ShowTestResult(textBlockLatitude, "灰阶", ab); }
void TestAberration() { try { BeginTime = DateTime.Now; double r = (testHelper.CurrentChart as AberrationChart).getAberration(); EndTime = DateTime.Now; LParameter lp = testHelper.getNewParameter("畸变测试卡", r, BeginTime, EndTime); lp.Name = "畸变"; lp.Memo = "查看照片两端垂直黑色线条的弯曲程度"; lp.Dimension = ""; //lp.TestChart = testHelper.CurrentChart.ChartPhoto; testHelper.ParameterList.Add(lp); testHelper.ShowTestResult(TextAberration, "畸变", null); } catch (Exception xe)//未知的异常 { testHelper.ProcessError(xe, "畸变计算错误"); } }