Example #1
0
        private void radioButtonIndependentChannels_Click(object sender, EventArgs e)
        {
            this.mode = Cip.Filters.HistogramMode.StretchIndependentChannels;
            groupBoxThreshold.Enabled = true;

            radioButtonHistNorm.Checked = false;
            radioButtonHistEqualization.Checked = false;
            radioButtonLuminance.Checked = false;
            radioButtonLinkedChannels.Checked = false;
            radioButtonIndependentChannels.Checked = true;
        }
Example #2
0
        private void radioButtonHistEqualization_Click(object sender, EventArgs e)
        {
            this.mode = Cip.Filters.HistogramMode.Equalize;
            groupBoxThreshold.Enabled = false;

            radioButtonHistNorm.Checked = false;
            radioButtonHistEqualization.Checked = true;
            radioButtonLuminance.Checked = false;
            radioButtonLinkedChannels.Checked = false;
            radioButtonIndependentChannels.Checked = false;
            if (!this.thread.IsAlive)
            {
                thread = new Thread(new ThreadStart(this.ReDraw));
                thread.Priority = ThreadPriority.Normal;
                thread.Start();
            }
        }