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 erosionToolStripMenuItem_Click(object sender, EventArgs e) { ErosionFilter ef = new ErosionFilter(mmkWidth, mmkHeight, mmkMatrix); backgroundWorker1.RunWorkerAsync(ef); }
private void сужениеToolStripMenuItem_Click(object sender, EventArgs e) { Filter filter = new ErosionFilter(MorphMask); backgroundWorker1.RunWorkerAsync(filter); }
public ClosingFilter(int w, int h, int[,] k) { dilationFilter = new DilationFilter(w, h, k); erosionFilter = new ErosionFilter(w, h, k); }