Interaction logic for UserControl1.xaml
Inheritance: System.Windows.Controls.UserControl
Ejemplo n.º 1
0
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
#if VS_V8
			Application.Run(new Form1());
#else
			ItemsModel model = new ItemsModel();
			model.PopulateFromStringsAndVectors(Form1.ReadLines(model.form1.folder + "Images.txt"), model.form1.data);
			ClassifierView cv = new ClassifierView();
			cv.DataContext = model;
			cv.ShowInForm("Image Classifer using Infer.NET");
#endif
		}
Ejemplo n.º 2
0
        static void Main()
        {
            // First compute features for all the images.
            // Comment the next 2 lines out if the images have not changed and you don't want to re-compute the features each run.
            var features = new ImageFeatures();
            features.ComputeImageFeatures();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ItemsModel model = new ItemsModel();
            model.PopulateFromStringsAndVectors(Form1.ReadLines(model.form1.folder + "Images.txt"), model.form1.data);
            ClassifierView cv = new ClassifierView();
            cv.DataContext = model;
            cv.ShowInForm("Image Classifer using Infer.NET");
        }
Ejemplo n.º 3
0
        static void Main()
        {
            // First compute features for all the images.
            // Comment the next 2 lines out if the images have not changed and you don't want to re-compute the features each run.
            var features = new ImageFeatures();

            features.ComputeImageFeatures();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            ItemsModel model = new ItemsModel();

            model.PopulateFromStringsAndVectors(Form1.ReadLines(model.form1.folder + "Images.txt"), model.form1.data);
            ClassifierView cv = new ClassifierView();

            cv.DataContext = model;
            cv.ShowInForm("Image Classifer using Infer.NET");
        }