public Gem(GemColor gemColor, Bitmap bitmap, int x = 0, int y = 0) { Bitmap = bitmap; X = x; Y = y; GemColor = gemColor; Histograms = Histograms.Calculate(bitmap); }
private void bRecalcHisto_Click(object sender, EventArgs e) { foreach (Gem gem in KnowledgeBase.TrainingData) { gem.Histograms = Histograms.Calculate(gem.Bitmap); } Log("Recalc complete. Don't forget to save!"); }