Esempio n. 1
0
        public void createExpertWindow()
        {
            AppData.getInstance().isExpert = true;
            Image img = openImage();

            if (img == null)
            {
                return;
            }
            Bitmap           bmp  = new Bitmap(img);
            SymbolSearchForm form = new SymbolSearchForm(img);

            form.ShowDialog();
            PhyhoAnalyze ob = new CounterColor(path);

            ob.FillStat();
            DiagPrBuild fdg = new DGBuild(ob.GetMaxPercent());

            fdg.FillPrior();
            Dictionary <string, double> prior = new Dictionary <string, double>(fdg.GetPriorColor());
            //form.ShowDialog();
            //MessageBox.Show(ob.ShowInfo(), "Часто встречающиеся цвета");
            AboutColor dialog = new AboutColor(prior);

            dialog.SetTextAboutColor(ob.ShowInfo());
            dialog.ShowDialog();
        }
Esempio n. 2
0
        public void createUserWindow()
        {
            AppData.getInstance().isExpert = false;
            Image img = openImage();

            if (img == null)
            {
                return;
            }
            Bitmap           bmp  = new Bitmap(img);
            SymbolSearchForm form = new SymbolSearchForm(img);

            form.ShowDialog();
        }