private void btn_colorChannels_Click(object sender, EventArgs e)
        {
            var colorChannelList = ImageEdit.ColorChannels(pbox_mainImage.Image);

            pbox_redColorChannel.Image   = colorChannelList[0];
            pbox_greenColorChannel.Image = colorChannelList[1];
            pbox_blueColorChannel.Image  = colorChannelList[2];
        }
        private void CalculateChart()
        {
            var histogramData = ImageEdit.Histogram(image);

            chartHistogram.ChartAreas[0].AxisY.ScaleView.Zoom(0, histogramData.Item2 * 4);
            chartHistogram.ChartAreas[0].AxisX.ScaleView.Zoom(0, 255);

            redSeries       = new Series("red");
            greenSeries     = new Series("green");
            blueSeries      = new Series("blue");
            grayscaleSeries = new Series("grayscale");

            for (int i = 0; i < 255; i++)
            {
                redSeries.Points.AddXY(i, histogramData.histogramValues.ElementAt(0)[i]);
                greenSeries.Points.AddXY(i, histogramData.histogramValues.ElementAt(1)[i]);
                blueSeries.Points.AddXY(i, histogramData.histogramValues.ElementAt(2)[i]);
                grayscaleSeries.Points.AddXY(i, histogramData.histogramValues.ElementAt(3)[i]);
            }
        }