예제 #1
0
        private void adaptiveThresholdToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Show dialog and get some parameters
            frmAdaptiveSettings frm = new frmAdaptiveSettings();

            frm.settings = adaptiveBallSettings;
            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                //Get settings and store somewhere
                adaptiveBallSettings = frm.settings;
            }
        }
예제 #2
0
        private void adaptiveThresholdProcessToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //Settings to be used from process menu
            // Not getting ball contour from pyramided image
            frmAdaptiveSettings frm = new frmAdaptiveSettings();

            frm.settings = adaptiveProcessSettings;
            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                //Get settings and store somewhere
                adaptiveProcessSettings = frm.settings;
            }
        }
예제 #3
0
        private void adaptiveThresholdToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmAdaptiveSettings frm = new frmAdaptiveSettings();

            frm.settings     = adaptiveProcessSettings;
            frm.PreviewImage = mProcessedImageIndex;
            frm.PicDisplay   = this.pictureBox;
            if (frm.ShowDialog(this) == DialogResult.OK)
            {
                //Get settings and store somewhere
                adaptiveProcessSettings = frm.settings;
                if (frm.PreviewImage > 0)
                {
                    FreeImage(mProcessedImageIndex);
                    mProcessedImageIndex = frm.PreviewImage;
                    ShowImage(mProcessedImageIndex);
                }
            }
            else
            {
                ShowImage(mProcessedImageIndex);
            }
        }