Ejemplo n.º 1
0
        public RetagWindow()
        {
            Init();
            PngCodec.Register();
            JPEGCodec.Register();
            CreateDirectories();

            manager          = new ConfigurationManager();
            attentionHandler = new AttentionHandler()
            {
                ConfigurationManager = manager
            };
            retag = new Retagger()
            {
                ConfigurationManager = manager
            };
            analyser = new AttentionMapAnalizer()
            {
                ConfigurationManager = manager
            };

            manager.Init();
            analyser.Init();
            retag.Init();
            model = new DisplayModel(this);

            last = new PointF(-windowSize, -windowSize);
        }
Ejemplo n.º 2
0
        public NewTagWindow()
        {
            CreateDirectories();

            Init();
            PngCodec.Register();
            JPEGCodec.Register();

            manager = new ConfigurationManager()
            {
                NeedLabel = false
            };
            attentionHandler = new AttentionHandler()
            {
                ConfigurationManager = manager, AllowWithoutLabel = true
            };
            tagger = new Tagger()
            {
                ConfigurationManager = manager
            };
            analyser = new AttentionMapAnalizer()
            {
                ConfigurationManager = manager
            };

            manager.Init();
            analyser.Init();
            model = new DisplayModelTagWindow(this);

            last = new PointF(-windowSize, -windowSize);
            buttonsPressed[1] = false;
            buttonsPressed[2] = false;
            buttonsPressed[3] = false;
        }