示例#1
0
        private void закрытиеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filter dilation = new DilationFilter(MorphMask);
            Filter erosion  = new ErosionFilter();

            Filter[] arr = { dilation, erosion };

            backgroundWorker1.RunWorkerAsync(arr);
        }
示例#2
0
        private void dilationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            DilationFilter df = new DilationFilter(mmkWidth, mmkHeight, mmkMatrix);

            backgroundWorker1.RunWorkerAsync(df);
        }
示例#3
0
        private void расширениеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filter filter = new DilationFilter(MorphMask);

            backgroundWorker1.RunWorkerAsync(filter);
        }
示例#4
0
 public ClosingFilter(int w, int h, int[,] k)
 {
     dilationFilter = new DilationFilter(w, h, k);
     erosionFilter  = new ErosionFilter(w, h, k);
 }