public BrightnessQuantization() { InitializeComponent(); data = Data.Instance; imProcFacade = ImageProcessingFacade.GetInstance(); pictureBox1.Image = data.Get <Bitmap>(Constants.image); }
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); }
public ManualBinarizationWindow() { InitializeComponent(); radioButtonUpper.Checked = true; imageProcessingFacade = ImageProcessingFacade.GetInstance(); data = Data.Instance; srcImage.Image = data.Get <Bitmap>(Constants.image); }