Exemple #1
0
 public Gem(GemColor gemColor, Bitmap bitmap, int x = 0, int y = 0)
 {
     Bitmap     = bitmap;
     X          = x;
     Y          = y;
     GemColor   = gemColor;
     Histograms = Histograms.Calculate(bitmap);
 }
Exemple #2
0
 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!");
 }