Example #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                this.imagesPath = openFileDialog1.FileName;
            }

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                this.labelsPath = openFileDialog1.FileName;
            }

            DigitalImageParser digitalImage = new DigitalImageParser(this.imagesPath, this.labelsPath, 10000);

            digitalImage.Parse();

            Mode.testImagesFeatures = digitalImage.ImagesFeatures;
            Mode.testLabels         = digitalImage.Labels;

            MNISTClassificationForm mcf = new MNISTClassificationForm();

            mcf.Show();

            this.Close();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                this.imagesPath = openFileDialog1.FileName;
            }

            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                this.labelsPath = openFileDialog1.FileName;
            }

            DigitalImageParser digitalImage = new DigitalImageParser(this.imagesPath, this.labelsPath, 10000);
            digitalImage.Parse();

            Mode.testImagesFeatures = digitalImage.ImagesFeatures;
            Mode.testLabels = digitalImage.Labels;

            MNISTClassificationForm mcf = new MNISTClassificationForm();
            mcf.Show();

            this.Close();
        }