private void buttonRecognize_Click(object sender, EventArgs e)
        {
            string MatchedHigh = "?", MatchedLow = "?";
            double OutputValueHight = 0, OutputValueLow = 0;

            double[] input = ProcesamientoImagen.ToMatrix(drawingPanel1.ImageOnPanel,
                                                          av_imgH, av_imgW);

            NeuralNet.Recognize(input, ref MatchedHigh, ref OutputValueHight,
                                ref MatchedLow, ref OutputValueLow);

            ShowRecognitionResults(MatchedHigh, MatchedLow, OutputValueHight, OutputValueLow);
        }
 private void GenerarSetEntrenamiento()
 {
     ImgBits          = new List <Bitmap>();
     ImgDirecciones   = Directory.GetFiles(ruta, "*.bmp");
     SetEntrenamiento = new Dictionary <string, double[]>(ImgDirecciones.Length);
     foreach (string s in ImgDirecciones)
     {
         Bitmap Temp = new Bitmap(s);
         ImgBits.Add(new Bitmap(new Bitmap(s), drawingPanel1.Width, drawingPanel1.Height));
         SetEntrenamiento.Add(Path.GetFileNameWithoutExtension(s),
                              ProcesamientoImagen.ToMatrix(Temp, av_imgH, av_imgW));
         Temp.Dispose();
     }
 }