Example #1
0
 public Opening()
 {
     this.structuralElement = new int[, ] {
         { 0, 1, 0 }, { 1, 1, 1 }, { 0, 1, 0 }
     };
     this.diliation = new Dilation(structuralElement, 2, 2);
     this.erosion   = new Erosion(structuralElement, 2, 1);
 }
Example #2
0
 public Grad()
 {
     this.structuralElement = new int[, ] {
         { 0, 1, 0 }, { 1, 1, 1 }, { 0, 1, 0 }
     };
     this.diliation = new Dilation(structuralElement, 3, 1);
     this.erosion   = new Erosion(structuralElement, 3, 2);
     this.workerCompositionRatio    = 3;
     this.workerCompositionPosition = 3;
 }
Example #3
0
        private void сужениеErosionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Erosion filter;

            if (this.structuralElement != null)
            {
                filter = new Erosion(structuralElement);
            }
            else
            {
                filter = new Erosion();
            }
            backgroundWorker1.RunWorkerAsync(filter);
        }
Example #4
0
 public Grad(int[,] structuralElement)
 {
     this.structuralElement = structuralElement;
     this.diliation         = new Dilation(structuralElement, 3, 1);
     this.erosion           = new Erosion(structuralElement, 3, 2);
 }
Example #5
0
 public Opening(int [,] structuralElement)
 {
     this.structuralElement = structuralElement;
     this.diliation         = new Dilation(structuralElement, 2, 2);
     this.erosion           = new Erosion(structuralElement, 2, 1);
 }