예제 #1
0
        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)));
        }
예제 #2
0
        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)));
        }
예제 #3
0
 private async void buttonContrastHistogramEqualization_Click(object sender, EventArgs e)
 {
     await wrapEffect(() => Contrast.HistogramEqualization(Helper.deepCloneBMP(outputBitmap)));
 }
예제 #4
0
 private async void buttonContrastNegative_Click(object sender, EventArgs e)
 {
     await wrapEffect(() => Contrast.Negative(Helper.deepCloneBMP(outputBitmap)));
 }