private void button1_Click(object sender, EventArgs e) { List <double> result = new List <double>(); result = neuron.ClassifyImage(new Bitmap(checkImage.Image)); resultClass.Text = (k + 1).ToString(); k++; }
private void button1_Click(object sender, EventArgs e) { List <double> result = new List <double>(); result.Add(neuron.ClassifyImage(new Bitmap(first.Image))); result.Add(neuron.ClassifyImage(new Bitmap(second.Image))); result.Add(neuron.ClassifyImage(new Bitmap(fourth.Image))); result.Add(neuron.ClassifyImage(new Bitmap(fifth.Image))); double porog = 0; foreach (double item in result) { porog += item; } porog /= 4; resultClass.Text = neuron.ClassifyImage(new Bitmap(checkImage.Image)) >= porog ? "second" : "first"; //resultClass.Text = neuron.ClassifyImage(new Bitmap(checkImage.Image)).ToString(); }
private void button1_Click(object sender, EventArgs e) { resultClass.Text = neuron.ClassifyImage(new Bitmap(checkImage.Image)).ToString(); }