Ejemplo n.º 1
0
        public Form1()
        {
            InitializeComponent();

            current_colorspace_input = 0;

            wrapper_inverse_projection = new CppWrapper.CppInverseProjectionWrapper();
            wrapper_inverse_projection.SetInputColorScapeType(0);

            Chart chart = new Chart();

            chart = chart1;

            chart.Series.Clear();

            chart.Series.Add("Loaded Points");
            chart.Series[0].Tag       = "LoadedPoints";
            chart.Series[0].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;

            chart.Series.Add("Input Points");
            chart.Series[1].Tag       = "InputPoints";
            chart.Series[1].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;

            //chart.Series.Add("Reference Points");
            //chart.Series[2].Tag = "ReferencePoints";
            //chart.Series[2].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
        }
Ejemplo n.º 2
0
        public Form1()
        {
            clicked = new bool[3];
            InitializeComponent();

            comboBox1.Items.Add("HSV");
            comboBox1.Items.Add("RGB");

            current_colorspace_input = 0;
            comboBox1.SelectedIndex  = current_colorspace_input;

            wrapper_inverse_projection = new CppWrapper.CppInverseProjectionWrapper();
            wrapper_inverse_projection.SetInputColorScapeType(0);
        }
Ejemplo n.º 3
0
        public Form1()
        {
            InitializeComponent();

            this.pct_box_result_image.Image       = null;
            this.pct_box_result_image.BorderStyle = BorderStyle.FixedSingle;

            global_mouse_id_click = -1;

            current_colorspace_input = 0;

            wrapper_inverse_projection = new CppWrapper.CppInverseProjectionWrapper();
            wrapper_inverse_projection.SetInputColorScapeType(0);
            Chart chart = new Chart();

            chart = chart1;
            chart.Series.Clear();

            chart.Series.Add("Loaded Points");
            chart.Series[0].Tag         = "LoadedPoints";
            chart.Series[0].ChartType   = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
            chart.Series[0].Color       = Color.Blue;
            chart.Series[0].MarkerStyle = MarkerStyle.Square;

            chart.Series.Add("Input Points");
            chart.Series[1].Tag         = "InputPoints";
            chart.Series[1].ChartType   = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
            chart.Series[1].Color       = Color.Orange;
            chart.Series[1].MarkerStyle = MarkerStyle.Circle;

            chart.Series.Add("Control Points");
            chart.Series[2].Tag         = "ControlPoints";
            chart.Series[2].ChartType   = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
            chart.Series[2].Color       = Color.Red;
            chart.Series[2].MarkerStyle = MarkerStyle.Square;

            input_prop_type      = 0;
            loaded_properties    = null;
            number_of_properties = 0;
            min_max_property     = null;
        }
Ejemplo n.º 4
0
        public Form1()
        {
            InitializeComponent();
            add          = false;
            controls     = new List <List <List <double> > >();
            controls_idx = new List <List <int> >();
            for (int i = 0; i < 4; i++)
            {
                List <List <double> > aux = new List <List <double> >();
                List <double>         t   = new List <double>();
                aux.Add(t);
                controls.Add(aux);
                controls_idx.Add(new List <int>());
            }

            current_colorspace_input = 0;

            wrapper_inverse_projection = new CppWrapper.CppInverseProjectionWrapper();
            wrapper_inverse_projection.SetInputColorScapeType(0);
            Chart chart = new Chart();

            chart = chart1;
            chart.Series.Clear();

            chart.Series.Add("Loaded Points");
            chart.Series[0].Tag       = "LoadedPoints";
            chart.Series[0].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;

            chart.Series.Add("Input Points");
            chart.Series[1].Tag       = "InputPoints";
            chart.Series[1].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
            chart.Series.Add("Control Points");
            chart.Series[2].Tag       = "ControlPoints";
            chart.Series[2].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
            chart.Series[2].Color     = Color.Red;

            chart = chart2;
            chart.Series.Clear();

            chart.Series.Add("Loaded Points");
            chart.Series[0].Tag       = "LoadedPoints";
            chart.Series[0].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;

            chart.Series.Add("Input Points");
            chart.Series[1].Tag       = "InputPoints";
            chart.Series[1].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
            chart.Series.Add("Control Points");
            chart.Series[2].Tag       = "ControlPoints";
            chart.Series[2].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
            chart.Series[2].Color     = Color.Red;

            chart = chart3;
            chart.Series.Clear();

            chart.Series.Add("Loaded Points");
            chart.Series[0].Tag       = "LoadedPoints";
            chart.Series[0].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;

            chart.Series.Add("Input Points");
            chart.Series[1].Tag       = "InputPoints";
            chart.Series[1].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
            chart.Series.Add("Control Points");
            chart.Series[2].Tag       = "ControlPoints";
            chart.Series[2].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
            chart.Series[2].Color     = Color.Red;

            chart = chart4;
            chart.Series.Clear();

            chart.Series.Add("Loaded Points");
            chart.Series[0].Tag       = "LoadedPoints";
            chart.Series[0].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;

            chart.Series.Add("Input Points");
            chart.Series[1].Tag       = "InputPoints";
            chart.Series[1].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;

            chart.Series.Add("Control Points");
            chart.Series[2].Tag       = "ControlPoints";
            chart.Series[2].ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
            chart.Series[2].Color     = Color.Red;
            input_property            = new double[4, 2];
        }