Exemple #1
0
 /*
 *
 * FIN
 *
 * */
 public void showHistogram(bool Absolute)
 {
     HistogramForm Histograma = new HistogramForm(R_, G_, B_, monocrom_, Absolute);
         Histograma.MdiParent = this.MdiParent;
         Histograma.Show();
 }
Exemple #2
0
        public void DifferencePart1(Bitmap bmpo, Bitmap bmpn)
        {
            picture_ = new Bitmap(bmpo);
            width_ = bmpo.Width;
            height_ = bmpo.Height;

            for (int x = 0; x < width_; x++)
            {
                for (int y = 0; y < height_; y++)
                {

                    int temp = Math.Abs(bmpo.GetPixel(x, y).R - bmpn.GetPixel(x,y).R);
                    Color color = Color.FromArgb(temp, temp, temp);
                    picture_.SetPixel(x, y, color);
                    R_[picture_.GetPixel(x, y).R]++;
                    G_[picture_.GetPixel(x, y).G]++;
                    B_[picture_.GetPixel(x, y).B]++;
                    CheckMonocrom(picture_, x, y);

                }
            }

            this.pictureBox1.Image = (Image)(picture_);
            HistogramForm h = new HistogramForm(R_, G_, B_, true, true, bmpo, picture_);
            h.MdiParent = this.MdiParent;
            h.Show();
        }