コード例 #1
0
        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++;
        }
コード例 #2
0
        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();
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: dashayatsynyuk/Neuronets
 private void button1_Click(object sender, EventArgs e)
 {
     resultClass.Text = neuron.ClassifyImage(new Bitmap(checkImage.Image)).ToString();
 }