using System;
using ;
using ponentModel;
using ;
using ;
using ;
using ;
using ;
using ;
namespace 单像空间后方交会
{
public partial class Form1 : Form
{
public Form1()
{
ponent();
}
private void button1_Click(object sender, EventArgs e)
{
string path = ();
OpenFileDialog OpenDlg = new OpenFileDialog(); //通过openfiledialog打开数据文件
= "文本文件|*.*|C#文件|*.cs|所有文件|*.*";
= 1;
= path;
if (() == )
{
//打开文件对话框中选择的文件名
string fname = ;
//创建从字符串进行读取的StringReader对象
StreamReader sr = (fname);
string str;
while ((str = ()) != null)
{
//将读出的字符串在richTextBox1中显示;
+= str;
+= "\n";
}
}
double[] x = new double[4]; //像点横坐标
double[] y=new double[4];//像点纵坐标
//定义数组大小
double[] X = new double[4];//像点对应地面点横坐标
double[] Y = new double[4];//像点对应地面点纵坐标
double[] Z = new double[4];//像点对应地面点Z坐标
double[] X1 = new double[4];//共线方程分子
double[] Y1 = new double[4];////共线方程分子
double[] Z1 = new double[4];//共线方程分母
double Xs;//摄影中心在地面摄影测量坐标系中的坐标
double Ys;//摄影中心在地面摄影测量坐标系中的坐标
double Zs;//摄影中心在地面摄影测量坐标系中的坐标
double Q = 0;/
单像空间后方交会 来自淘豆网www.taodocs.com转载请标明出处.