} /* UpdateClassificationStats */ public void ContributeOurClassCounts(ClassStatSortedList _classCounts, ref uint _numImagesClassified ) { lock (classCounts) { foreach (ClassStat cs in classCounts.Values) { _classCounts.AddCount(cs.mlClass, cs.count); } _numImagesClassified += numImagesClassified; } } /* ContributeOurClassCounts */
private void ClassInitialization() { sizeDistributionDown = new SizeDistribution2(0.1f, 1.2f, 10.0f); sizeDistributionUp = new SizeDistribution2(0.1f, 1.2f, 10.0f); depthDistribution_1 = new SizeDistribution(500, 1); depthDistribution_1Down = new SizeDistribution(500, 1); depthDistribution_1Up = new SizeDistribution(500, 1); depthDistribution_10 = new SizeDistribution(50, 10); classCounts = new ClassStatSortedList(); numImagesClassified = 0; pred1 = new PicesPrediction(null, 0, 0.0f); pred2 = new PicesPrediction(null, 0, 0.0f); if (classifier != null) { classesInClassifier = classifier.MLClasses(); } }