Ejemplo n.º 1
0
 public BrightnessQuantization()
 {
     InitializeComponent();
     data              = Data.Instance;
     imProcFacade      = ImageProcessingFacade.GetInstance();
     pictureBox1.Image = data.Get <Bitmap>(Constants.image);
 }
Ejemplo n.º 2
0
        private void initialBindings()
        {
            imageProcessingFacade = ImageProcessingFacade.GetInstance();
            imageHistogramsFacade = new ImageHistogramsFacade();
            data = Data.Instance;

            channels = new List <string>()
            {
                "Red", "Green", "Blue", "All"
            };
            channelDict = new Dictionary <string, Channel>();
            channelDict.Add("Red", Channel.R);
            channelDict.Add("Green", Channel.G);
            channelDict.Add("Blue", Channel.B);
            channelDict.Add("All", Channel.ALL);

            colors = new Dictionary <Channel, Color>();
            colors.Add(Channel.R, Color.Red);
            colors.Add(Channel.G, Color.Green);
            colors.Add(Channel.B, Color.Blue);
            colors.Add(Channel.ALL, Color.Black);

            data.Set(Constants.currentHistMode, Histmode.Log);
            data.Set(Constants.currentChannel, Channel.ALL);
            data.Set(Constants.image, null);


            data.BindChangeField(Constants.image, updatepicBox);
            data.BindChangeField(Constants.image, updateHistView);
            data.BindChangeField(Constants.currentChannel, updateHistView);
            data.BindChangeField(Constants.currentHistMode, updateHistView);
        }
Ejemplo n.º 3
0
 public ManualBinarizationWindow()
 {
     InitializeComponent();
     radioButtonUpper.Checked = true;
     imageProcessingFacade    = ImageProcessingFacade.GetInstance();
     data           = Data.Instance;
     srcImage.Image = data.Get <Bitmap>(Constants.image);
 }