コード例 #1
0
 public NeuralNetworkClassification()
 {
     ethalons = Ethalon.UploadEthalons();
     if (topology == null)
     {
         topology      = new Topology(60 * 40, ethalons.Count, 0.1, 60);
         neuralNetwork = new NeuralNetwork(topology);
         Learn();
     }
 }
コード例 #2
0
        static private List <int> Classification(List <Bitmap> objects)
        {
            List <Bitmap> ethalons   = Ethalon.UploadEthalons();
            List <double> bufResults = new List <double>();
            List <int>    results    = new List <int>();

            foreach (var item in objects)
            {
                foreach (var ethalon in ethalons)
                {
                    bufResults.Add(ComputeImgFidelity(item, ethalon));
                }
                results.Add(FindOutIndex(bufResults));
                bufResults.Clear();
            }
            return(results);
        }