Пример #1
0
        private void rGBToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (img == null) // verify if the image is already opened
            {
                return;
            }

            int[,] hists = ImageClass.Histogram_RGB(img);

            new HistogramForm(hists).ShowDialog();
        }
Пример #2
0
        private void histogramRGBToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (img == null)
            {
                return;
            }

            Histogram rgbHistogram = new Histogram(ImageClass.Histogram_RGB(img));

            rgbHistogram.ShowDialog();
        }
Пример #3
0
        private void rGBToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (img == null)             // verify if the image is already opened
            {
                return;
            }

            using (ColorHistogramForm form = new ColorHistogramForm(ImageClass.Histogram_RGB(img), 3))
            {
                form.ShowDialog();
            }
        }
        private void rGBToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (img == null) // verify if the image is already opened
            {
                return;
            }
            Cursor = Cursors.WaitCursor; // clock cursor

            int[,] histogram = ImageClass.Histogram_RGB(img);

            histogram_rgb form = new histogram_rgb(histogram);

            form.ShowDialog();
            Cursor = Cursors.Default; // normal cursor
        }
Пример #5
0
        private void GreyToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (img == null) // verify if the image is already opened
            {
                return;
            }
            Cursor             = Cursors.WaitCursor; // clock cursor
            int[,] histDataRGB = ImageClass.Histogram_RGB(img);

            Form2 hist = new Form2(ImageClass.Histogram_Gray(img), histDataRGB);

            hist.ShowDialog();

            ImageViewer.Image = img.Bitmap;
            ImageViewer.Refresh();    // refresh image on the screen

            Cursor = Cursors.Default; // normal cursor
        }
Пример #6
0
        private void rGBToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (img == null) // verify if the image is already opened
            {
                return;
            }
            Cursor = Cursors.WaitCursor; // clock cursor

            //copy Undo Image
            imgUndo = img.Copy();

            int[] histogram = ImageClass.Histogram_RGB(img);
            ////Histogram histoChart = new Histogram("Gray Histogram", histogram);

            //histoChart.ShowDialog();

            ImageViewer.Image = img.Bitmap;
            ImageViewer.Refresh();    // refresh image on the screen

            Cursor = Cursors.Default; // normal cursor
        }
Пример #7
0
        private void histogramAllToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (img == null) // verify if the image is already opened
            {
                return;
            }
            Cursor = Cursors.WaitCursor; // clock cursor

            //copy Undo Image
            imgUndo = img.Copy();


            HistogramAll form = new HistogramAll(ImageClass.Histogram_Gray(imgUndo), ImageClass.Histogram_RGB(imgUndo));

            form.ShowDialog();


            ImageViewer.Image = img.Bitmap;
            ImageViewer.Refresh();    // refresh image on the screen

            Cursor = Cursors.Default; // normal cursor
        }