📄 kernel.vb
字号:
Public Class frmImageProcess
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents txtd As System.Windows.Forms.TextBox
Friend WithEvents grbKernel As System.Windows.Forms.GroupBox
Friend WithEvents lblDivider As System.Windows.Forms.Label
Friend WithEvents btnOK As System.Windows.Forms.Button
Friend WithEvents btnCancel As System.Windows.Forms.Button
Friend WithEvents btnCheck As System.Windows.Forms.Button
Friend WithEvents cboDestination As System.Windows.Forms.ComboBox
Friend WithEvents cboSource As System.Windows.Forms.ComboBox
Friend WithEvents lblDestination As System.Windows.Forms.Label
Friend WithEvents lblSource As System.Windows.Forms.Label
Friend WithEvents grpImage As System.Windows.Forms.GroupBox
Friend WithEvents cmbKernel As System.Windows.Forms.ComboBox
Friend WithEvents grpK As System.Windows.Forms.GroupBox
Friend WithEvents txtk5 As System.Windows.Forms.TextBox
Friend WithEvents txtk6 As System.Windows.Forms.TextBox
Friend WithEvents txtk7 As System.Windows.Forms.TextBox
Friend WithEvents txtk8 As System.Windows.Forms.TextBox
Friend WithEvents txtk1 As System.Windows.Forms.TextBox
Friend WithEvents txtk2 As System.Windows.Forms.TextBox
Friend WithEvents txtk3 As System.Windows.Forms.TextBox
Friend WithEvents txtk4 As System.Windows.Forms.TextBox
Friend WithEvents txtk0 As System.Windows.Forms.TextBox
Friend WithEvents lblLg As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Me.grbKernel = New System.Windows.Forms.GroupBox
Me.grpK = New System.Windows.Forms.GroupBox
Me.txtk5 = New System.Windows.Forms.TextBox
Me.txtk6 = New System.Windows.Forms.TextBox
Me.txtk7 = New System.Windows.Forms.TextBox
Me.txtk8 = New System.Windows.Forms.TextBox
Me.txtk1 = New System.Windows.Forms.TextBox
Me.txtk2 = New System.Windows.Forms.TextBox
Me.txtk3 = New System.Windows.Forms.TextBox
Me.txtk4 = New System.Windows.Forms.TextBox
Me.txtk0 = New System.Windows.Forms.TextBox
Me.cmbKernel = New System.Windows.Forms.ComboBox
Me.lblDivider = New System.Windows.Forms.Label
Me.txtd = New System.Windows.Forms.TextBox
Me.btnCheck = New System.Windows.Forms.Button
Me.btnOK = New System.Windows.Forms.Button
Me.btnCancel = New System.Windows.Forms.Button
Me.grpImage = New System.Windows.Forms.GroupBox
Me.cboDestination = New System.Windows.Forms.ComboBox
Me.cboSource = New System.Windows.Forms.ComboBox
Me.lblDestination = New System.Windows.Forms.Label
Me.lblSource = New System.Windows.Forms.Label
Me.lblLg = New System.Windows.Forms.Label
Me.grbKernel.SuspendLayout()
Me.grpK.SuspendLayout()
Me.grpImage.SuspendLayout()
Me.SuspendLayout()
'
'grbKernel
'
Me.grbKernel.Controls.Add(Me.grpK)
Me.grbKernel.Controls.Add(Me.cmbKernel)
Me.grbKernel.Controls.Add(Me.lblDivider)
Me.grbKernel.Controls.Add(Me.txtd)
Me.grbKernel.Controls.Add(Me.btnCheck)
Me.grbKernel.Location = New System.Drawing.Point(320, 8)
Me.grbKernel.Name = "grbKernel"
Me.grbKernel.Size = New System.Drawing.Size(216, 216)
Me.grbKernel.TabIndex = 11
Me.grbKernel.TabStop = False
Me.grbKernel.Text = "Convolution kernel:"
'
'grpK
'
Me.grpK.Controls.Add(Me.txtk5)
Me.grpK.Controls.Add(Me.txtk6)
Me.grpK.Controls.Add(Me.txtk7)
Me.grpK.Controls.Add(Me.txtk8)
Me.grpK.Controls.Add(Me.txtk1)
Me.grpK.Controls.Add(Me.txtk2)
Me.grpK.Controls.Add(Me.txtk3)
Me.grpK.Controls.Add(Me.txtk4)
Me.grpK.Controls.Add(Me.txtk0)
Me.grpK.Location = New System.Drawing.Point(8, 64)
Me.grpK.Name = "grpK"
Me.grpK.Size = New System.Drawing.Size(200, 112)
Me.grpK.TabIndex = 24
Me.grpK.TabStop = False
'
'txtk5
'
Me.txtk5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtk5.Location = New System.Drawing.Point(136, 48)
Me.txtk5.MaxLength = 3
Me.txtk5.Name = "txtk5"
Me.txtk5.ReadOnly = True
Me.txtk5.Size = New System.Drawing.Size(56, 20)
Me.txtk5.TabIndex = 8
Me.txtk5.Text = "0"
Me.txtk5.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'txtk6
'
Me.txtk6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtk6.Location = New System.Drawing.Point(8, 80)
Me.txtk6.MaxLength = 3
Me.txtk6.Name = "txtk6"
Me.txtk6.ReadOnly = True
Me.txtk6.Size = New System.Drawing.Size(56, 20)
Me.txtk6.TabIndex = 9
Me.txtk6.Text = "0"
Me.txtk6.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'txtk7
'
Me.txtk7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtk7.Location = New System.Drawing.Point(72, 80)
Me.txtk7.MaxLength = 3
Me.txtk7.Name = "txtk7"
Me.txtk7.ReadOnly = True
Me.txtk7.Size = New System.Drawing.Size(56, 20)
Me.txtk7.TabIndex = 10
Me.txtk7.Text = "0"
Me.txtk7.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'txtk8
'
Me.txtk8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtk8.Location = New System.Drawing.Point(136, 80)
Me.txtk8.MaxLength = 3
Me.txtk8.Name = "txtk8"
Me.txtk8.ReadOnly = True
Me.txtk8.Size = New System.Drawing.Size(56, 20)
Me.txtk8.TabIndex = 11
Me.txtk8.Text = "0"
Me.txtk8.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'txtk1
'
Me.txtk1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtk1.Location = New System.Drawing.Point(72, 16)
Me.txtk1.MaxLength = 3
Me.txtk1.Name = "txtk1"
Me.txtk1.ReadOnly = True
Me.txtk1.Size = New System.Drawing.Size(56, 20)
Me.txtk1.TabIndex = 4
Me.txtk1.Text = "0"
Me.txtk1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'txtk2
'
Me.txtk2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtk2.Location = New System.Drawing.Point(136, 16)
Me.txtk2.MaxLength = 3
Me.txtk2.Name = "txtk2"
Me.txtk2.ReadOnly = True
Me.txtk2.Size = New System.Drawing.Size(56, 20)
Me.txtk2.TabIndex = 5
Me.txtk2.Text = "0"
Me.txtk2.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'txtk3
'
Me.txtk3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtk3.Location = New System.Drawing.Point(8, 48)
Me.txtk3.MaxLength = 3
Me.txtk3.Name = "txtk3"
Me.txtk3.ReadOnly = True
Me.txtk3.Size = New System.Drawing.Size(56, 20)
Me.txtk3.TabIndex = 6
Me.txtk3.Text = "0"
Me.txtk3.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'txtk4
'
Me.txtk4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtk4.Location = New System.Drawing.Point(72, 48)
Me.txtk4.MaxLength = 3
Me.txtk4.Name = "txtk4"
Me.txtk4.ReadOnly = True
Me.txtk4.Size = New System.Drawing.Size(56, 20)
Me.txtk4.TabIndex = 7
Me.txtk4.Text = "1"
Me.txtk4.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'txtk0
'
Me.txtk0.AccessibleName = "asd"
Me.txtk0.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtk0.Location = New System.Drawing.Point(8, 16)
Me.txtk0.MaxLength = 3
Me.txtk0.Name = "txtk0"
Me.txtk0.ReadOnly = True
Me.txtk0.Size = New System.Drawing.Size(56, 20)
Me.txtk0.TabIndex = 3
Me.txtk0.Text = "0"
Me.txtk0.TextAlign = System.Windows.Forms.HorizontalAlignment.Center
'
'cmbKernel
'
Me.cmbKernel.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.cmbKernel.Items.AddRange(New Object() {"Copy", "Negative", "Mean filter", "Gaussian Smoothing 1", "Gaussian Smoothing 2", "Gaussian Smoothing 3", "Laplacian Edge Detector 1", "Laplacian Edge Detector 2", "Laplacian Edge Detector 3", "Sobel Edge Detector h", "Sobel Edge Detector v", "Sobel Edge Detector /", "Sobel Edge Detector \\", "Prewitt compass edge detector h", "Prewitt compass edge detector v", "Compass Edge Detector 0", "Compass Edge Detector 45", "Line Detector h", "Line Detector v", "Line Detector /", "Line Detector \\", "Roberts Cross Edge Detector /", "Roberts Cross Edge Detector \\"})
Me.cmbKernel.Location = New System.Drawing.Point(16, 32)
Me.cmbKernel.Name = "cmbKernel"
Me.cmbKernel.Size = New System.Drawing.Size(184, 21)
Me.cmbKernel.TabIndex = 2
'
'lblDivider
'
Me.lblDivider.AutoSize = True
Me.lblDivider.Location = New System.Drawing.Point(24, 184)
Me.lblDivider.Name = "lblDivider"
Me.lblDivider.Size = New System.Drawing.Size(43, 16)
Me.lblDivider.TabIndex = 21
Me.lblDivider.Text = "Divider:"
'
'txtd
'
Me.txtd.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle
Me.txtd.Location = New System.Drawing.Point(80, 184)
Me.txtd.MaxLength = 3
Me.txtd.Name = "txtd"
Me.txtd.ReadOnly = True
Me.txtd.Size = New System.Drawing.Size(56, 20)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -