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; }
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(); } }