Exemple #1
0
        /// <summary>
        /// timer回调函数 100ms更新一次
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UpDateTask_Tick(object sender, EventArgs e)
        {
            //绘制十字并更新图像
            _control.DrawCross();
            //更新2D图

            Pic2D.Image = img.ColorMap;

            //更新数据列表
            XWidth.Text          = img.BreadthX.ToString();
            YWidth.Text          = img.BreadthY.ToString();
            XCoord.Text          = img.ShapeCenterX.ToString();
            YCoord.Text          = img.ShapeCenterY.ToString();
            XBias.Text           = img.BiasX.ToString();
            YBias.Text           = img.BiasY.ToString();
            HorizontalAngle.Text = img.AngleX.ToString();
            VerticalAngle.Text   = img.AngleY.ToString();


            //更新能量分布图
            heightMap = new Image <Gray, Byte>(img.GrayBitmap);
            colormat  = new Image <Bgr, Byte>(img.ColorMap).Convert <Rgb, Byte>();


            createPaneY(zedGraphControl2);

            createPaneX(zedGraphControl1);
        }
Exemple #2
0
 public DebugWindow()
 {
     InitializeComponent();
     _control = ControlClass.GetInstance();
     _control.StartPreview(AngleImg, ShiftImg);
     updateTimer.Interval = (40);
     updateTimer.Tick    += (o, e) => _control.DrawCross();
 }