private void фильтрСобеляToolStripMenuItem_Click(object sender, EventArgs e) { if (pictureBox1.Enabled && !backgroundWorker1.IsBusy) { Filters filter = new SobelFilter(); backgroundWorker1.RunWorkerAsync(filter); } }
public ShinyFilter(int rad) { this.rad = rad; filter1 = new MedianFilter(2); filter2 = new SobelFilter(); }
private void фильтрСобеляToolStripMenuItem_Click(object sender, EventArgs e) { Filters filter = new SobelFilter(); backgroundWorker1.RunWorkerAsync(filter); }