예제 #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     image = new ImageRecognizer((Bitmap)pictureBox1.Image, (byte)separateValue.Value, 0);
     image.TransformToBlackAndWhite();
     pictureBox2.Image = image.OutputImage;
     image.RecognizePixelsToGroups();
     image.PaintFromGroupMap();
     pictureBox3.Image = image.OutputImage;
     DrawHistogram(zedGraphControl2, pictureBox1);
 }
예제 #2
0
 private void button2_Click(object sender, EventArgs e)
 {
     image = new ImageRecognizer((Bitmap)pictureBox1.Image, (byte)separateValue.Value, (int)MinSquare.Value, (int)KMedianNumber.Value, (double)areaCoefficient.Value,
                                 (double)perimeterCoefficient.Value, (double)elongationCoefficient.Value, (double)DensityCoefficient.Value, (double)massCenterCoefficient.Value);
     image.TransformToBlackAndWhite();
     pictureBox2.Image = image.OutputImage;
     image.RecognizePixelsToGroups();
     image.SetPixelsToObjectGroupsWithFilter();
     image.SetObjectsToGroups();
     image.PaintFromGroupMap();
     pictureBox3.Image = image.OutputImage;
     DrawHistogram(zedGraphControl2, pictureBox1);
 }