Курсовая работа: Програма обробки зображень
}
private void лапласианToolStripMenuItem_Click(object sender, EventArgs e)
{
Start<Laplacian>(false);
}
public void Start<T>(bool edit) where T : IKernel, new()
{
IKernel kernel = new T();
Bitmap bitmap = new Bitmap(picture.Image);
if (new KernelForm(false, kernel).ShowDialog() == DialogResult.OK)
{
win = new WaitForm(backgroundWorker);
win.Show(this);
backgroundWorker.RunWorkerAsync(new StartParam(bitmap, kernel));
}
}
private void smoothingToolStripMenuItem_Click(object sender, EventArgs e)
{
Start<Smoothing>(false);
}
private void гаусовыйToolStripMenuItem_Click(object sender, EventArgs e)
{
Start<Gaussian>(false);
}
private void CustomToolStripMenuItem_Click(object sender, EventArgs e)
{
Start<Unknown>(true);
}
private void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)