private void Dilation8_Click(object sender, EventArgs e) { basicImageOpertions.ToGreyScale(); KernelOpperations kernelOpperations = new KernelOpperations((Bitmap)this.pctbImage.Image); SetImageAndHist(kernelOpperations.Dilatation(0, 1, 8)); }
private void Opening8(object sender, EventArgs e) { basicImageOpertions.ToGreyScale(); KernelOpperations kernelOpperations = new KernelOpperations((Bitmap)this.pctbImage.Image); this.pctbImage.Image = kernelOpperations.Dilatation(0, 1, 8); kernelOpperations = new KernelOpperations((Bitmap)this.pctbImage.Image); this.pctbImage.Image = kernelOpperations.Erosion(0, 1, 8); SetImageAndHist((Bitmap)this.pctbImage.Image); }