private void расширениеToolStripMenuItem_Click(object sender, EventArgs e) { if (pictureBox1.Enabled && !backgroundWorker1.IsBusy) { Filters filter = new Dilation(structelem.mask, 1, 0); backgroundWorker1.RunWorkerAsync(filter); } }
public Opening(int[,] mask) { erosion = new Erosion(mask, 2, 0); dilation = new Dilation(mask, 2, 50); this.mask = mask; }
public BlackHat(int[,] mask) { dilation = new Dilation(mask, 2, 0); this.mask = mask; }