Пример #1
0
        private void grayscaleToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Images image = new Images(ProcessImage.grayscalePercentage(this.pictureBox1.Image));

            image.Text      = this.Text + " - Grayscale";
            image.MdiParent = this.MdiParent;
            image.Show();
        }
 private void countToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         int Thresh = OtsuThresholding.computeOriginalOtsuThresholding(ProcessImage.HistoGray(ProcessImage.grayscalePercentage(orig)));
         int Hold   = OtsuThresholding.computeOriginalOtsuThresholding(ProcessImage.HistoGray(ProcessImage.grayscalePercentage(temp)));
         MessageBox.Show("Number of Blobs: " + ProcessImage.BlobCountingUsingTemplateMatching(orig, temp));
     }
     catch
     {
         MessageBox.Show("Input is lacking");
     }
 }