public NeuralNetworkClassification() { ethalons = Ethalon.UploadEthalons(); if (topology == null) { topology = new Topology(60 * 40, ethalons.Count, 0.1, 60); neuralNetwork = new NeuralNetwork(topology); Learn(); } }
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); }