DLTDlg.h
资源名称:DLT.rar [点击查看]
上传用户:szacenet
上传日期:2022-06-20
资源大小:317k
文件大小:3k
源码类别:
图形图象
开发平台:
Visual C++
- // DLTDlg.h : header file
- //
- #if !defined(AFX_DLTDLG_H__9CB279D4_5971_4748_969F_517F3E8CFD51__INCLUDED_)
- #define AFX_DLTDLG_H__9CB279D4_5971_4748_969F_517F3E8CFD51__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- /////////////////////////////////////////////////////////////////////////////
- // CDLTDlg dialog
- struct PRSPoint
- {
- int ID;//点号
- double x1;//左相片像点坐标
- double y1;
- double x2;//右相片像点坐标
- double y2;
- double X;//对应地面点坐标
- double Y;
- double Z;
- double m;//单点中误差
- };
- struct PixPoint
- {
- int ID;
- double x;//相片像点坐标
- double y;
- };
- struct GeodeticPoint
- {
- int ID;
- double x;//大地坐标
- double y;
- double z;
- };
- class CDLTDlg : public CDialog
- {
- // Construction
- public:
- CDLTDlg(CWnd* pParent = NULL); // standard constructor
- vector<PixPoint> m_LeftPoints;//存储zuo相片像点坐标
- vector<PixPoint> m_RightPoints;//存储you相片像点坐标
- vector<GeodeticPoint> m_CtrlPoints;
- double *pLeftLi;//左li系数精确值,k
- double *pRightLi;//右li系数精确值,k
- double * pLOrient;//左片定向元素
- double * pROrient;//you 片定向元素
- CString strResultFileName;
- //打开文件存储data到容器 返回文件名
- CString CDLTDlg::OpenFileStore(vector<PixPoint> * Container );
- CString CDLTDlg::OpenFileStore(vector<GeodeticPoint> * Container );
- //计算x0,和y0以及li系数的精确值
- int CalOrtAndLiFactors(vector<PixPoint> PixContner,vector<GeodeticPoint> CtrlContner,double *li,double *pElems,double *pTrueLi);
- //计算li系数的近似值
- bool CalApproximateLiFactors(vector<PixPoint> PixContner,vector<GeodeticPoint> CtrlContner,double *pPara);
- //计算待定点的XYZ和精度
- void CalXYZAndPrecision(vector<PixPoint> LPixContner,vector<PixPoint> RPixContner,double *pLLinar,double *pRLinar,double *pLi1,double *pLi2);
- // Dialog Data
- //{{AFX_DATA(CDLTDlg)
- enum { IDD = IDD_DLT_DIALOG };
- //}}AFX_DATA
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDLTDlg)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
- // Implementation
- protected:
- HICON m_hIcon;
- // Generated message map functions
- //{{AFX_MSG(CDLTDlg)
- virtual BOOL OnInitDialog();
- afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
- afx_msg void OnPaint();
- afx_msg HCURSOR OnQueryDragIcon();
- virtual void OnOK();
- afx_msg void OnButnCtrl();
- afx_msg void OnButnLeft();
- afx_msg void OnButnRight();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DLTDLG_H__9CB279D4_5971_4748_969F_517F3E8CFD51__INCLUDED_)
English
