} /// mst // clusters private void btnGaussSmooth_Click(object sender, EventArgs e) { try { if (txtKC.Text != "0") { int Kclusters = int.Parse(txtKC.Text); Result = ImageOperations.OpenImage(globalpathforimage); GraphOperations.Kcluster(Kclusters, DistinctColors, mst); ImageOperations.DisplayImage(Result, pictureBox2); pictureBox2.Visible = true; } else { MessageBox.Show("Clusers Can't be Zero"); } } catch { MessageBox.Show("Please Select a Photo"); } }