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); } }