Exemple #1
0
        public void train(Framework.Core.Database.IRecordEnumerable <StandardRecord <StandardRecordData> > trainingDatabase)
        {
            int total = trainingDatabase.getRecords().Count();
            int act   = 0;
            List <EmguGrayImageInputData> data = new List <EmguGrayImageInputData>();

            foreach (StandardRecord <StandardRecordData> r in trainingDatabase.getRecords())
            {
                EmguGrayImageInputData input = settings.getInputDataCreator().createInputData(r);
                data.Add(input);
                this.onProgressChanged(new Framework.Core.ProgressReport("Statistical model training", ++act, total));
            }
            this.settings.PcaExtractor.train(data);
        }
Exemple #2
0
 public double test(Framework.Core.Database.IRecordEnumerable <StandardRecord <StandardRecordData> > testingDatabase)
 {
     //TODO
     return(0.0);
 }