資源簡介
解析空中三角測量,可實現數據的導入,相對定向,絕對定向,模型連接,結果檢測,附帶數據!

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
namespace?解析空中三角測量程序設計
{
????class?Class1
????{
????????//一些基本的矩陣運算函數:乘法,轉置,求逆陣,減法
????????//矩陣乘法
????????//C=A*B
????????public?double[]?Multiplication(double[]?A?double[]?B)
????????{????????????
????????????double[]?C?=?new?double[A.GetLength(0)?B.GetLength(1)];
????????????for?(int?i?=?0;?i?????????????{
????????????????for?(int?j?=?0;?j?????????????????{
????????????????????C[i?j]?=?0;
????????????????????for?(int?k?=?0;?k?????????????????????{
????????????????????????C[i?j]?+=?A[i?k]?*?B[k?j];?????????
????????????????????}
????????????????}
????????????}
????????????return?C;
????????}
????????//?矩陣轉置
????????//A的轉置記為AT???????
????????public?double[]?Transpose(double[]?A)
????????{
????????????double[]?AT?=?new?double[A.GetLength(1)?A.GetLength(0)];
????????????for?(int?i?=?0;?i?????????????{
????????????????for?(int?j?=?0;?j?????????????????{
????????????????????AT[i?j]?=?A[j?i];
????????????????}
????????????}
????????????return?AT;
????????}
????????
????????//?矩陣求逆
????????//A的逆陣記為A1????????
????????public?double[]?Inverse(double[]?A)
????????{
????????????double[]?A1?=?new?double[A.GetLength(0)?A.GetLength(1)];
????????????int?i?j?row?k;
????????????double?max?temp;
???????????
????????????for?(i?=?0;?i?????????????{
????????????????A1[i?i]?=?1;
????????????}
????????????for?(k?=?0;?k?????????????{
????????????????max?=?0;
????????????????row?=?k;//找出最大的元素值,記錄行值row????????????????
????????????????for?(i?=?k;?i?????????????????{
????????????????????temp?=?Math.Abs(A[i?k]);
????????????????????if?(max?????????????????????{
????????????????????????max?=?temp;
????????????????????????row?=?i;
????????????????????}
????????????????}
????????????????//交換第k行與第row行
????????????????if?(row?!=?k)
????????????????{
????????????????????for?(j?=?0;?j?????????????????????{
????????????????????????temp?=?A[row?j];
????????????????????????A[row?j]?=?A[k?j];
????????????????????????A[k?j]?=?temp;
????????????????????????temp?=?A1[row?j];
????????????????????????A1[row?j]?=?A1[k?j];
????????????????????????A1[k?j]?=?temp;
????????????????????}
????????????????}
????????????????//將矩陣首元化為1
????????????????for?(j?=?k?+?1;?j?????????????????????A[k?j]?/=?A[k?k];
????????????????for?(j?=?0;?j?????????????????????A1[k?j]?/=?A[k?k];
????????????????A[k?k]?=?1;
????????????????//把矩陣第k列化為0
????????????????for?(j?=?k?+?1;?j?????????????????{
????????????????????for?(i?=?0;?i?????????????????????????A[i?j]?-=?A[i?k]?*
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2019-06-03?11:41??解析空中三角測量程序設計\
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\
?????文件????????2581??2018-11-24?15:49??解析空中三角測量程序設計\.gitattributes
?????文件????????3997??2018-11-24?15:49??解析空中三角測量程序設計\.gitignore
?????文件?????????691??2018-11-24?15:49??解析空中三角測量程序設計\.git\config
?????文件??????????73??2018-11-24?15:49??解析空中三角測量程序設計\.git\desc
?????文件??????????23??2018-11-24?15:49??解析空中三角測量程序設計\.git\HEAD
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\hooks\
?????文件?????????177??2018-11-24?15:49??解析空中三角測量程序設計\.git\hooks\README.sample
?????文件????????1552??2018-11-24?15:49??解析空中三角測量程序設計\.git\index
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\info\
?????文件?????????113??2018-11-24?15:49??解析空中三角測量程序設計\.git\info\exclude
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\logs\
?????文件?????????336??2018-11-24?15:49??解析空中三角測量程序設計\.git\logs\HEAD
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\logs\refs\
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\logs\refs\heads\
?????文件?????????336??2018-11-24?15:49??解析空中三角測量程序設計\.git\logs\refs\heads\master
?????文件?????????150??2018-11-24?15:49??解析空中三角測量程序設計\.git\ms-persist.xm
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
?????文件?????????452??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
?????文件??????????89??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
?????文件????????1863??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
?????文件?????????751??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
?????文件?????????186??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
?????目錄???????????0??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
?????文件?????????351??2018-11-24?15:49??解析空中三角測量程序設計\.git\ob
............此處省略77個文件信息
評論
共有 條評論