Ejemplo n.º 1
0
        private void berekenen_Click(object sender, EventArgs e)
        {
            try
            {
                Camera camera1 = new Camera
                                 (
                    Convert.ToDouble(camera1XCoordinaat.Text),
                    Convert.ToDouble(camera1YCoordinaat.Text),
                    (Convert.ToDouble(camera1Alpha.Text) * Math.PI) / 180,
                    Convert.ToInt16(camera1Resolutie.Text)
                                 );
                Camera camera2 = new Camera
                                 (
                    Convert.ToDouble(camera2XCoordinaat.Text),
                    Convert.ToDouble(camera2YCoordinaat.Text),
                    (Convert.ToDouble(camera2Alpha.Text) * Math.PI) / 180,
                    Convert.ToInt16(camera2Resolutie.Text)
                                 );

                fotogrammetrie = new Fotogrammetrie(camera1, camera2, Convert.ToInt16(coordinaatFoto1.Text), Convert.ToInt16(coordinaatFoto2.Text));

                Coordinaat resultaat = fotogrammetrie.berekenWaarde();
                Console.WriteLine("De gevonden coördinaat is: (" + resultaat.x + "; " + resultaat.y + ")");
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception.Message);
            }
        }
Ejemplo n.º 2
0
 public FotogrammetrieForm()
 {
     InitializeComponent();
     fotogrammetrie = new Fotogrammetrie();
     Reset();
     Console.SetOut(new ControlWriter(textBox1));
     fileOpened = false;
     opslaanToolStripMenuItem.Enabled = false;
 }