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); }
public double test(Framework.Core.Database.IRecordEnumerable <StandardRecord <StandardRecordData> > testingDatabase) { //TODO return(0.0); }