private void btnGaussSmooth_Click(object sender, EventArgs e) { int maskSize = (int)nudMaskSize.Value; ImageOperations.Find_Distinct(ImageMatrix); int x = (int)nudMaskSize.Value; ImageOperations.Quantize_Image(ImageMatrix, x, ref pictureBox2); }