public ClosingFilter(int _w, int _h, float[,] _kernel) { dilationFilter = new DilationFilter(_w, _h, _kernel); erosionFilter = new ErosionFilter(_w, _h, _kernel); }
private void сужениеToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter = new ErosionFilter(MathMorphWidth, MathMorphkHeight, MathMorphKernel); backgroundWorker1.RunWorkerAsync(filter); }