异步函数调用.ZC

1、我常用的方式:

                        tabControl.Dispatcher.BeginInvoke(new Action(() =>
                        {
                            TImageMsg imageMsg = (TImageMsg)Fht[FvideoCapture0];
                            
                            string strType = "标准化差值平方和匹配";
                            Mat matTarget = TargetMat();
                            Big_Start(imageMsg.strVideo, strType, matTarget, 0.1);
                            tabControl.SelectedIndex = 2;// ZC: 主要是 tabControl的操作 一直不成功(没反应),才想到放到 异步代码中去的...
                        }));

 

2、

3、

4、

5、

 

posted @ 2019-07-04 10:21  csskill  阅读(170)  评论(0)    收藏  举报