private void VisualizationYuvModel(object sender, EventArgs e)
        {
            double y = checkBoxYuvY.Checked ? trackBarYuvY.Value : 0;
            double u = checkBoxYuvU.Checked ? trackBarYuvU.Value : 0;
            double v = checkBoxYuvV.Checked ? trackBarYuvV.Value : 0;
            byte   r, g, b;

            ClassColorModel.FromYuv(y, u, v, out r, out g, out b);
            trackBarRgbR.Value = r;
            trackBarRgbG.Value = g;
            trackBarRgbB.Value = b;

            double h, s;

            ClassColorModel.ToHsv(r, g, b, out h, out s, out v);
            trackBarHsvH.Value = GetInt(h);
            trackBarHsvS.Value = GetInt(s * 100);
            trackBarHsvV.Value = GetInt(v * 100);

            SetResultImage(_imageProcessor.VisualizeRgb(r, g, b));
        }
        private void VisualizationHsvModel(object sender, EventArgs e)
        {
            double h = checkBoxHsvH.Checked ? trackBarHsvH.Value : 0;
            double s = checkBoxHsvS.Checked ? trackBarHsvS.Value / 100f : 0;
            double v = checkBoxHsvV.Checked ? trackBarHsvV.Value / 100f : 0;
            byte   r, g, b;

            ClassColorModel.FromHsv(h, s, v, out r, out g, out b);
            trackBarRgbR.Value = r;
            trackBarRgbG.Value = g;
            trackBarRgbB.Value = b;

            double y, u;

            ClassColorModel.ToYuv(r, g, b, out y, out u, out v);
            trackBarYuvY.Value = GetInt(y);
            trackBarYuvU.Value = GetInt(u);
            trackBarYuvV.Value = GetInt(v);

            SetResultImage(_imageProcessor.VisualizeRgb(r, g, b));
        }
        private void VisualizationRgbModel(object sender, EventArgs e)
        {
            byte r = (byte)(checkBoxRgbR.Checked ? trackBarRgbR.Value : 0);
            byte g = (byte)(checkBoxRgbG.Checked ? trackBarRgbG.Value : 0);
            byte b = (byte)(checkBoxRgbB.Checked ? trackBarRgbB.Value : 0);

            double h, s, v, y, u;

            ClassColorModel.ToHsv(r, g, b, out h, out s, out v);
            trackBarHsvH.Value = GetInt(h);
            trackBarHsvS.Value = GetInt(s * 100);
            trackBarHsvV.Value = GetInt(v * 100);

            ClassColorModel.ToYuv(r, g, b, out y, out u, out v);
            trackBarYuvY.Value = GetInt(y);
            trackBarYuvU.Value = GetInt(u);
            trackBarYuvV.Value = GetInt(v);

            if (sender != null)
            {
                SetResultImage(_imageProcessor.VisualizeRgb(r, g, b));
            }
        }