Features.FeaturesLayer.run C# (CSharp) 메소드

run() 공개 메소드

This will be called in a different thread, It will start the features run and the statusUpdater
public run ( ) : void
리턴 void
        public void run()
        {
            Thread runFeatThread = new Thread(runFeatures);
            runFeatThread.Start();

            //_statusUpdaterThread = new Thread(statusUpdater);
            //_statusUpdaterThread.Start();
        }

Usage Example

예제 #1
0
 public void TestAllFeatures()
 {
     string path = @"C:\Users\Daniel\Desktop\BitExact Pictures\";
     string[] pathes = Directory.GetFiles(path, "*.jpg", SearchOption.AllDirectories);
     bool[] feat = new bool[4];
     feat[(int)Feature.BAD_CONTRAST] = true;
     feat[(int)Feature.BIT_EXACT] = true;
     Task task = new Task(pathes.ToList(), feat);
     FeaturesLayer core = new FeaturesLayer(ref task);
     core.loadImages();
     while (core.LoadingImagesStatus < 100)
     {
         Thread.Sleep(300);
         Debug.WriteLine("li: {0}", core.LoadingImagesStatus);
     }
     core.run();
     while (core.RunStatus < 100)
     {
         Thread.Sleep(300);
         Debug.WriteLine("run: {0}", core.RunStatus);
     }
 }