private async void buttonContrastLogarithmic_Click(object sender, EventArgs e) { InputDialog id = new InputDialog(); id.Text = "C"; id.Type = typeof(double); if (id.ShowDialog() != DialogResult.OK) { return; } await wrapEffect(() => Contrast.LogTransform((double)id.Result, Helper.deepCloneBMP(outputBitmap))); }
private async void buttonPowerLaw_Click(object sender, EventArgs e) { InputDialog id = new InputDialog(); id.Text = "C"; id.Type = typeof(double); if (id.ShowDialog() != DialogResult.OK) { return; } double c = (double)id.Result; id = new InputDialog(); id.Text = "gamma"; id.Type = typeof(double); if (id.ShowDialog() != DialogResult.OK) { return; } double gamma = (double)id.Result; await wrapEffect(() => Contrast.PowerLawTransform(c, gamma, Helper.deepCloneBMP(outputBitmap))); }
private async void buttonContrastHistogramEqualization_Click(object sender, EventArgs e) { await wrapEffect(() => Contrast.HistogramEqualization(Helper.deepCloneBMP(outputBitmap))); }
private async void buttonContrastNegative_Click(object sender, EventArgs e) { await wrapEffect(() => Contrast.Negative(Helper.deepCloneBMP(outputBitmap))); }