⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 一维影像匹配运行主窗体.frm

📁 摄影测量影象匹配
💻 FRM
📖 第 1 页 / 共 3 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Form1 
   AutoRedraw      =   -1  'True
   BackColor       =   &H80000007&
   Caption         =   "利用核线进行一维影象匹配命令执行窗口"
   ClientHeight    =   8160
   ClientLeft      =   60
   ClientTop       =   465
   ClientWidth     =   10110
   ForeColor       =   &H8000000D&
   LinkTopic       =   "Form1"
   Picture         =   "一维影像匹配运行主窗体.frx":0000
   ScaleHeight     =   8160
   ScaleWidth      =   10110
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      BackColor       =   &H8000000D&
      Caption         =   "影象匹配命令执行区"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000E&
      Height          =   1335
      Left            =   0
      TabIndex        =   2
      Top             =   6840
      Width           =   10095
      Begin VB.CommandButton Command2 
         Caption         =   "利用相关系数进行粗匹配"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   615
         Left            =   240
         TabIndex        =   17
         Top             =   240
         Width           =   4575
      End
      Begin VB.CommandButton Command3 
         Caption         =   "利用最小二乘法进行精确的匹配"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   615
         Left            =   5400
         TabIndex        =   16
         Top             =   240
         Width           =   4335
      End
      Begin MSComctlLib.ProgressBar ProgressBar1 
         Height          =   255
         Left            =   0
         TabIndex        =   3
         Top             =   960
         Width           =   10095
         _ExtentX        =   17806
         _ExtentY        =   450
         _Version        =   393216
         BorderStyle     =   1
         Appearance      =   1
         Max             =   200
      End
   End
   Begin VB.Frame Frame2 
      BackColor       =   &H80000002&
      Caption         =   "影象匹配初始命令区"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H8000000F&
      Height          =   6975
      Left            =   7680
      TabIndex        =   1
      Top             =   0
      Width           =   2415
      Begin VB.Frame Frame4 
         BackColor       =   &H8000000D&
         Caption         =   "影象坐标的内定向"
         ForeColor       =   &H8000000E&
         Height          =   3975
         Left            =   120
         TabIndex        =   8
         Top             =   480
         Width           =   2175
         Begin VB.CommandButton Command8 
            Caption         =   "读入处理后的坐标数值到窗体中"
            BeginProperty Font 
               Name            =   "隶书"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   615
            Left            =   240
            TabIndex        =   15
            Top             =   3240
            Width           =   1815
         End
         Begin VB.Frame Frame6 
            BackColor       =   &H8000000D&
            Height          =   1695
            Left            =   120
            TabIndex        =   10
            Top             =   240
            Width           =   1935
            Begin VB.CommandButton Command7 
               Caption         =   "对相片进行内定向"
               BeginProperty Font 
                  Name            =   "隶书"
                  Size            =   12
                  Charset         =   134
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               Height          =   615
               Left            =   120
               TabIndex        =   12
               Top             =   960
               Width           =   1695
            End
            Begin VB.CommandButton Command6 
               Caption         =   "求解定向六个元素的数值"
               BeginProperty Font 
                  Name            =   "隶书"
                  Size            =   12
                  Charset         =   134
                  Weight          =   400
                  Underline       =   0   'False
                  Italic          =   0   'False
                  Strikethrough   =   0   'False
               EndProperty
               Height          =   615
               Left            =   120
               TabIndex        =   11
               Top             =   240
               Width           =   1695
            End
         End
         Begin VB.Frame Frame5 
            BackColor       =   &H8000000D&
            Caption         =   "选择要处理的相片"
            ForeColor       =   &H8000000E&
            Height          =   975
            Left            =   120
            TabIndex        =   9
            Top             =   2160
            Width           =   1935
            Begin VB.OptionButton Option2 
               BackColor       =   &H8000000D&
               Caption         =   "右相片"
               ForeColor       =   &H8000000E&
               Height          =   255
               Left            =   480
               TabIndex        =   14
               Top             =   600
               Width           =   1095
            End
            Begin VB.OptionButton Option1 
               BackColor       =   &H8000000D&
               Caption         =   "左相片"
               ForeColor       =   &H8000000E&
               Height          =   255
               Left            =   480
               TabIndex        =   13
               Top             =   240
               Width           =   1095
            End
         End
      End
      Begin VB.Frame Frame3 
         BackColor       =   &H8000000D&
         Caption         =   "读入影象匹配的参数值"
         ForeColor       =   &H8000000E&
         Height          =   2175
         Left            =   120
         TabIndex        =   4
         Top             =   4680
         Width           =   2175
         Begin VB.CommandButton Command1 
            Caption         =   "左影象点取目标点"
            BeginProperty Font 
               Name            =   "隶书"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   495
            Left            =   240
            TabIndex        =   7
            Top             =   1560
            Width           =   1815
         End
         Begin VB.CommandButton Command4 
            Caption         =   "读入左右相片的各个参数的数值"
            BeginProperty Font 
               Name            =   "隶书"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   495
            Left            =   240
            TabIndex        =   6
            Top             =   360
            Width           =   1815
         End
         Begin VB.CommandButton Command5 
            Caption         =   "计算旋转矩阵"
            BeginProperty Font 
               Name            =   "隶书"
               Size            =   12
               Charset         =   134
               Weight          =   400
               Underline       =   0   'False
               Italic          =   0   'False
               Strikethrough   =   0   'False
            EndProperty
            Height          =   495
            Left            =   240
            TabIndex        =   5
            Top             =   960
            Width           =   1815
         End
      End
   End
   Begin VB.PictureBox Picture1 
      AutoRedraw      =   -1  'True
      Height          =   7095
      Left            =   0
      Picture         =   "一维影像匹配运行主窗体.frx":4842
      ScaleHeight     =   7035
      ScaleWidth      =   8355
      TabIndex        =   0
      Top             =   0
      Width           =   8415
      Begin VB.Timer Timer1 
         Interval        =   500
         Left            =   7800
         Top             =   4320
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False




Private Sub Command8_Click()  '把转换后的坐标的数值读到窗体四相应的文本框中
Dim ch As Double
Open "相片坐标1.txt " For Input As #1
Input #1, ch
Form4.Text2.Text = ch
Input #1, ch
Form4.Text3.Text = ch
Input #1, ch
Form4.Text4.Text = ch
Input #1, ch
Form4.Text5.Text = ch
Close #1

Open "相片坐标2.txt " For Input As #1
Input #1, ch
Form4.Text6.Text = ch
Input #1, ch
Form4.Text7.Text = ch
Input #1, ch
Form4.Text8.Text = ch
Input #1, ch
Form4.Text9.Text = ch
Close #1

Command6.Enabled = False
Command7.Enabled = False
Command8.Enabled = False
Option1.Enabled = False
Option2.Enabled = False
Command4.Enabled = True
End Sub
Private Sub Command6_Click()    '求解像片坐标转换的六个参数的数值
Dim nfs As Integer, sc(6, 1) As Double
Dim xf() As Double, yf() As Double, xf1() As Double, yf1() As Double
Dim a() As Double, l() As Double, i As Integer, d9 As Integer
Dim mtxAt() As Double, mtxC1(6, 6) As Double, chx() As Double
Dim gz() As Double, j As Integer

d9 = 1
nfs = InputBox("输入进行仿射变换参数求解的点的个数")
ReDim a(2 * nfs, 6)
ReDim l(2 * nfs, 1)
ReDim xf1(nfs)
ReDim yf1(nfs)
ReDim xf(nfs)
ReDim yf(nfs)
Open "仿射.txt" For Input As #1
For i = 1 To nfs
Input #1, xf(i)
Input #1, yf(i)
Input #1, xf1(i)
Input #1, yf1(i)
Next i
Close #1

For i = 1 To nfs
a(d9, 1) = 1
a(d9, 2) = xf1(i)
a(d9, 3) = yf1(i)
a(d9, 4) = 0
a(d9, 5) = 0
a(d9, 6) = 0

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -