Esempio n. 1
0
        private void button5_Click(object sender, EventArgs e)
        {
            double[] row    = new double[] { 300, 500, 700, 300, 500, 700, 300, 500, 700 };
            double[] column = new double[] { 100, 100, 100, 200, 200, 200, 300, 300, 300 };

            double[] x = new double[] { 1000, 3000, 5000, 1000, 3000, 5000, 1000, 3000, 5000 };
            double[] y = new double[] { 1000, 1000, 1000, 2000, 2000, 2000, 3000, 3000, 3000 };

            double[] r = new double[] { 50, 100, 150 };
            double[] c = new double[] { 100, 50, 100 };

            calib1.CalibNinePoint(row, column);
            calib1.CalibRotationCenter(r, c);

            calib2.CalibNinePoint(row, column, x, y);

            //HTuple ro, co, qx, qy, qx2, qy2, angle2;
            //calib1.GetRotatedPose(0, 0, 0, 90, out ro, out co);
            //calib1.ImageToWorldPose(300, 100, out qx, out qy);

            //calib2.GetWorldPose(700, 300, 0, null, null, 0, out qx2, out qy2, out angle2);
        }