private void ImageCornerDetectionCompleted(List <IntPoint> Corners, Color colour)
 {
     if (this.processing != null)
     {
         if (this.processing.InvokeRequired)
         {
             ImageCompleteDelegate d = new ImageCompleteDelegate(s_ImageComplete);
             this.Invoke(d, new object[] { Corners });
         }
         else
         {
             this.processing.Close();
             this.processing = null;
         }
     }
     Log("Detection Finished");
     SetStatus(Corners.Count + " corners detected", true);
     DrawCorners(Corners, colour);
     if (ssw != null && ssw.IsRunning)
     {
         ssw.Stop();
         Log("Process Duration in Seconds: " + ssw.Elapsed);
     }
     if (smw != null && smw.IsRunning)
     {
         smw.Stop();
         Log("Process Duration in Seconds: " + smw.Elapsed);
     }
 }
示例#2
0
 private void s_ImageComplete(List <IntPoint> Corners)
 {
     if (processing != null)
     {
         if (processing.InvokeRequired)
         {
             ImageCompleteDelegate d = new ImageCompleteDelegate(s_ImageComplete);
             this.Invoke(d, new object[] { Corners });
         }
         else
         {
             processing.Close();
             processing = null;
         }
     }
     Log("Detection Finished");
     SetStatus(Corners.Count + " corners detected", true);
     DrawCorners(Corners);
 }
示例#3
0
        private void ImageCornerDetectionCompleted(List <IntPoint> Corners, Color colour)
        {
            if (this.processing != null)
            {
                if (this.processing.InvokeRequired)
                {
                    ImageCompleteDelegate d = new ImageCompleteDelegate(ImageCornerDetectionCompleted);
                    this.Invoke(d, new object[] { Corners, colour });
                }
                else
                {
                    this.processing.Close();
                    this.processing = null;
                    DrawCorners(Corners, colour);

                    if (swSusan.IsRunning)
                    {
                        swSusan.Stop();
                        Log(Corners.Count.ToString("N0") + " SUSAN Corners Detected in " + swSusan.Elapsed);
                    }
                    else if (swHarris.IsRunning)
                    {
                        swHarris.Stop();
                        Log(Corners.Count.ToString("N0") + " Harris Corners Detected in " + swHarris.Elapsed);
                    }
                    else if (swMoravec.IsRunning)
                    {
                        swMoravec.Stop();
                        Log(Corners.Count.ToString("N0") + " Moravec Corners Detected in " + swMoravec.Elapsed);
                    }
                    else if (swFast.IsRunning)
                    {
                        swFast.Stop();
                        Log(Corners.Count.ToString("N0") + " FAST Corners Detected in " + swFast.Elapsed);
                    }
                }
            }
        }