摄影测量学空间后方交会实验报告(3)
发布时间:2021-06-08
发布时间:2021-06-08
(2)已知4对点的影像坐标和地面坐标:
3.实验程序
using System;
using System.Collections.Generic; using System.Linq; using System.Text;
namespace ConsoleApplication3 {
class Program {
static void Main() {
//输入比例尺,主距,参与平参点的个数 Console.WriteLine("请输入比例尺分母m:\r"); string m1 = Console.ReadLine();
double m = (double)Convert.ToSingle(m1); Console.WriteLine("请输入主距f:\r"); string f1 = Console.ReadLine();
double f = (double)Convert.ToSingle(f1);
Console.WriteLine("请输入参与平差控制点的个数n:\r"); string n1 = Console.ReadLine(); int n = (int)Convert.ToSingle(n1);
//像点坐标的输入代码
double[] arr1 = new double[2 * n]; //1.像点x坐标的输入
for (int i = 0; i < n; i++) {
Console.WriteLine("请输入已进行系统误差改正的像点坐标的x{0}值:\r", i+1); string u = Console.ReadLine(); for (int j = 0; j < n; j += 2) {
arr1[j] = (double)Convert.ToSingle(u);
下一篇:走进大自然