예제 #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 erosionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ErosionFilter ef = new ErosionFilter(mmkWidth, mmkHeight, mmkMatrix);

            backgroundWorker1.RunWorkerAsync(ef);
        }
예제 #3
0
        private void сужениеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Filter filter = new ErosionFilter(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);
 }