Ejemplo n.º 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);
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
        private void расширениеToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Dilation filter;

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