示例#1
0
        void BTN_3_Click(object sender, EventArgs e)
        {
            string p3 = TB_CF.Text;

            if (!string.IsNullOrEmpty(p3))
            {
                string[]   ps     = p3.Split(' ');
                int        iter   = Convert.ToInt32(ps[0]);
                double     factor = Convert.ToDouble(ps[1]);
                int        r      = Convert.ToByte(ps[2]);
                Confidence thres  = new Confidence(bmp, seed1, iter, factor, r);
                thres.ExcuteFloodFill();
                ShowResult(thres.results, PB_CF, label4);
            }
        }