public HistogramView(PictureBox picBox,
     Histogram histogram)
 {
     this.picHist = picBox;
     this.histogram = histogram;
     bmp = new Bitmap(picHist.Width, picHist.Height);
     g = Graphics.FromImage(bmp);
     rect = new Rectangle(0, 0, picHist.Width, picHist.Height);
     xScale = (double)Histogram.MAX_PIXEL_DEPTH / (double)picHist.Width;
     lineScale = (double)picHist.Width/(double)Histogram.MAX_PIXEL_DEPTH;
 }
Example #2
0
        public Form1()
        {
            InitializeComponent();
            // set tab page titles
            tabPage1.Text = "Source";
            tabPage2.Text = "Preprocess";
            tabPage3.Text = "Destination";

            imageHandler = new ImageFileHandler();
            histogram = new Histogram();
            histView = new HistogramView(picHist, histogram);
        }