private void закрытиеToolStripMenuItem_Click(object sender, EventArgs e) { Filter dilation = new DilationFilter(MorphMask); Filter erosion = new ErosionFilter(); Filter[] arr = { dilation, erosion }; backgroundWorker1.RunWorkerAsync(arr); }
private void dilationToolStripMenuItem_Click(object sender, EventArgs e) { DilationFilter df = new DilationFilter(mmkWidth, mmkHeight, mmkMatrix); backgroundWorker1.RunWorkerAsync(df); }
private void расширениеToolStripMenuItem_Click(object sender, EventArgs e) { Filter filter = new DilationFilter(MorphMask); backgroundWorker1.RunWorkerAsync(filter); }
public ClosingFilter(int w, int h, int[,] k) { dilationFilter = new DilationFilter(w, h, k); erosionFilter = new ErosionFilter(w, h, k); }