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); }
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; }
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); }
public Grad(int[,] structuralElement) { this.structuralElement = structuralElement; this.diliation = new Dilation(structuralElement, 3, 1); this.erosion = new Erosion(structuralElement, 3, 2); }
public Opening(int [,] structuralElement) { this.structuralElement = structuralElement; this.diliation = new Dilation(structuralElement, 2, 2); this.erosion = new Erosion(structuralElement, 2, 1); }