private void okBtn_Click(object sender, EventArgs e) { DigitalImageParser digitalImage = new DigitalImageParser(this.imagesPath, this.labelsPath, 60000); digitalImage.Parse(); Main.trainingImagesFeatures = digitalImage.ImagesFeatures; Main.trainingLabels = digitalImage.Labels; Mode mode = new Mode(); mode.Show(); }
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(); }