| | |
| | | label13 = new Label(); |
| | | cmbTransition = new ComboBox(); |
| | | cmbSelect = new ComboBox(); |
| | | btnShowROI = new Button(); |
| | | pnlInputImage = new Panel(); |
| | | TopToolStrip = new ToolStrip(); |
| | | btnRun = new ToolStripButton(); |
| | |
| | | tabPageInputImage = new TabPage(); |
| | | tabPageRecordImage = new TabPage(); |
| | | pnlRecordImage = new Panel(); |
| | | btnShowROI = new Button(); |
| | | tablePanelParas.SuspendLayout(); |
| | | TopToolStrip.SuspendLayout(); |
| | | BtmStatusStrip.SuspendLayout(); |
| | |
| | | // tablePanelParas |
| | | // |
| | | tablePanelParas.ColumnCount = 4; |
| | | tablePanelParas.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 90F)); |
| | | tablePanelParas.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 116F)); |
| | | tablePanelParas.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); |
| | | tablePanelParas.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 90F)); |
| | | tablePanelParas.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 116F)); |
| | | tablePanelParas.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); |
| | | tablePanelParas.Controls.Add(label1, 0, 0); |
| | | tablePanelParas.Controls.Add(itxtCaliperCount, 1, 0); |
| | |
| | | tablePanelParas.Controls.Add(cmbSelect, 3, 3); |
| | | tablePanelParas.Controls.Add(btnShowROI, 0, 4); |
| | | tablePanelParas.Dock = DockStyle.Fill; |
| | | tablePanelParas.Location = new Point(3, 3); |
| | | tablePanelParas.Margin = new Padding(2, 3, 2, 3); |
| | | tablePanelParas.Location = new Point(4, 4); |
| | | tablePanelParas.Margin = new Padding(3, 4, 3, 4); |
| | | tablePanelParas.Name = "tablePanelParas"; |
| | | tablePanelParas.RowCount = 10; |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Percent, 10F)); |
| | |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Percent, 10.000001F)); |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Percent, 10.000001F)); |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Percent, 10F)); |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F)); |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F)); |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F)); |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F)); |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Absolute, 20F)); |
| | | tablePanelParas.Size = new Size(397, 510); |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Absolute, 24F)); |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Absolute, 24F)); |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Absolute, 24F)); |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Absolute, 24F)); |
| | | tablePanelParas.RowStyles.Add(new RowStyle(SizeType.Absolute, 24F)); |
| | | tablePanelParas.Size = new Size(512, 603); |
| | | tablePanelParas.TabIndex = 0; |
| | | // |
| | | // label1 |
| | | // |
| | | label1.AutoSize = true; |
| | | label1.Location = new Point(2, 0); |
| | | label1.Margin = new Padding(2, 0, 2, 0); |
| | | label1.MaximumSize = new Size(0, 28); |
| | | label1.MinimumSize = new Size(0, 28); |
| | | label1.Location = new Point(3, 0); |
| | | label1.MaximumSize = new Size(0, 33); |
| | | label1.MinimumSize = new Size(0, 33); |
| | | label1.Name = "label1"; |
| | | label1.Size = new Size(56, 28); |
| | | label1.Size = new Size(69, 33); |
| | | label1.TabIndex = 0; |
| | | label1.Text = "卡尺数量"; |
| | | label1.TextAlign = ContentAlignment.MiddleCenter; |
| | | // |
| | | // itxtCaliperCount |
| | | // |
| | | itxtCaliperCount.Location = new Point(92, 3); |
| | | itxtCaliperCount.Margin = new Padding(2, 3, 2, 3); |
| | | itxtCaliperCount.Location = new Point(119, 4); |
| | | itxtCaliperCount.Margin = new Padding(3, 4, 3, 4); |
| | | itxtCaliperCount.Name = "itxtCaliperCount"; |
| | | itxtCaliperCount.Size = new Size(98, 23); |
| | | itxtCaliperCount.Size = new Size(125, 27); |
| | | itxtCaliperCount.TabIndex = 5; |
| | | itxtCaliperCount.Text = "6"; |
| | | // |
| | | // label2 |
| | | // |
| | | label2.AutoSize = true; |
| | | label2.Location = new Point(200, 0); |
| | | label2.Margin = new Padding(2, 0, 2, 0); |
| | | label2.MaximumSize = new Size(0, 28); |
| | | label2.MinimumSize = new Size(0, 28); |
| | | label2.Location = new Point(259, 0); |
| | | label2.MaximumSize = new Size(0, 33); |
| | | label2.MinimumSize = new Size(0, 33); |
| | | label2.Name = "label2"; |
| | | label2.Size = new Size(56, 28); |
| | | label2.Size = new Size(69, 33); |
| | | label2.TabIndex = 1; |
| | | label2.Text = "卡尺长度"; |
| | | label2.TextAlign = ContentAlignment.MiddleCenter; |
| | | // |
| | | // dtxtCaliperHeight |
| | | // |
| | | dtxtCaliperHeight.Location = new Point(290, 3); |
| | | dtxtCaliperHeight.Margin = new Padding(2, 3, 2, 3); |
| | | dtxtCaliperHeight.Location = new Point(375, 4); |
| | | dtxtCaliperHeight.Margin = new Padding(3, 4, 3, 4); |
| | | dtxtCaliperHeight.Name = "dtxtCaliperHeight"; |
| | | dtxtCaliperHeight.Size = new Size(98, 23); |
| | | dtxtCaliperHeight.Size = new Size(125, 27); |
| | | dtxtCaliperHeight.TabIndex = 6; |
| | | dtxtCaliperHeight.Text = "30"; |
| | | // |
| | | // label3 |
| | | // |
| | | label3.AutoSize = true; |
| | | label3.Location = new Point(2, 51); |
| | | label3.Margin = new Padding(2, 0, 2, 0); |
| | | label3.MaximumSize = new Size(0, 28); |
| | | label3.MinimumSize = new Size(0, 28); |
| | | label3.Location = new Point(3, 60); |
| | | label3.MaximumSize = new Size(0, 33); |
| | | label3.MinimumSize = new Size(0, 33); |
| | | label3.Name = "label3"; |
| | | label3.Size = new Size(56, 28); |
| | | label3.Size = new Size(69, 33); |
| | | label3.TabIndex = 2; |
| | | label3.Text = "卡尺宽度"; |
| | | label3.TextAlign = ContentAlignment.MiddleCenter; |
| | | // |
| | | // dtxtCaliperWidth |
| | | // |
| | | dtxtCaliperWidth.Location = new Point(92, 54); |
| | | dtxtCaliperWidth.Margin = new Padding(2, 3, 2, 3); |
| | | dtxtCaliperWidth.Location = new Point(119, 64); |
| | | dtxtCaliperWidth.Margin = new Padding(3, 4, 3, 4); |
| | | dtxtCaliperWidth.Name = "dtxtCaliperWidth"; |
| | | dtxtCaliperWidth.Size = new Size(98, 23); |
| | | dtxtCaliperWidth.Size = new Size(125, 27); |
| | | dtxtCaliperWidth.TabIndex = 7; |
| | | dtxtCaliperWidth.Text = "10"; |
| | | // |
| | | // label4 |
| | | // |
| | | label4.AutoSize = true; |
| | | label4.Location = new Point(200, 51); |
| | | label4.Margin = new Padding(2, 0, 2, 0); |
| | | label4.MaximumSize = new Size(0, 28); |
| | | label4.MinimumSize = new Size(0, 28); |
| | | label4.Location = new Point(259, 60); |
| | | label4.MaximumSize = new Size(0, 33); |
| | | label4.MinimumSize = new Size(0, 33); |
| | | label4.Name = "label4"; |
| | | label4.Size = new Size(80, 28); |
| | | label4.Size = new Size(99, 33); |
| | | label4.TabIndex = 3; |
| | | label4.Text = "过滤一半像素"; |
| | | label4.TextAlign = ContentAlignment.MiddleCenter; |
| | | // |
| | | // itxtSigma |
| | | // |
| | | itxtSigma.Location = new Point(290, 54); |
| | | itxtSigma.Margin = new Padding(2, 3, 2, 3); |
| | | itxtSigma.Location = new Point(375, 64); |
| | | itxtSigma.Margin = new Padding(3, 4, 3, 4); |
| | | itxtSigma.Name = "itxtSigma"; |
| | | itxtSigma.Size = new Size(98, 23); |
| | | itxtSigma.Size = new Size(125, 27); |
| | | itxtSigma.TabIndex = 8; |
| | | itxtSigma.Text = "0"; |
| | | // |
| | | // label10 |
| | | // |
| | | label10.AutoSize = true; |
| | | label10.Location = new Point(2, 102); |
| | | label10.Margin = new Padding(2, 0, 2, 0); |
| | | label10.MaximumSize = new Size(0, 28); |
| | | label10.MinimumSize = new Size(0, 28); |
| | | label10.Location = new Point(3, 120); |
| | | label10.MaximumSize = new Size(0, 33); |
| | | label10.MinimumSize = new Size(0, 33); |
| | | label10.Name = "label10"; |
| | | label10.Size = new Size(68, 28); |
| | | label10.Size = new Size(84, 33); |
| | | label10.TabIndex = 9; |
| | | label10.Text = "对比度阈值"; |
| | | label10.TextAlign = ContentAlignment.MiddleCenter; |
| | | // |
| | | // itxtThreshold |
| | | // |
| | | itxtThreshold.Location = new Point(92, 105); |
| | | itxtThreshold.Margin = new Padding(2, 3, 2, 3); |
| | | itxtThreshold.Location = new Point(119, 124); |
| | | itxtThreshold.Margin = new Padding(3, 4, 3, 4); |
| | | itxtThreshold.Name = "itxtThreshold"; |
| | | itxtThreshold.Size = new Size(98, 23); |
| | | itxtThreshold.Size = new Size(125, 27); |
| | | itxtThreshold.TabIndex = 9; |
| | | itxtThreshold.Text = "0"; |
| | | // |
| | | // label11 |
| | | // |
| | | label11.AutoSize = true; |
| | | label11.Location = new Point(200, 102); |
| | | label11.Margin = new Padding(2, 0, 2, 0); |
| | | label11.MaximumSize = new Size(0, 28); |
| | | label11.MinimumSize = new Size(0, 28); |
| | | label11.Location = new Point(259, 120); |
| | | label11.MaximumSize = new Size(0, 33); |
| | | label11.MinimumSize = new Size(0, 33); |
| | | label11.Name = "label11"; |
| | | label11.Size = new Size(56, 28); |
| | | label11.Size = new Size(69, 33); |
| | | label11.TabIndex = 10; |
| | | label11.Text = "忽略点数"; |
| | | label11.TextAlign = ContentAlignment.MiddleCenter; |
| | | // |
| | | // itxtIgnoreCount |
| | | // |
| | | itxtIgnoreCount.Location = new Point(290, 105); |
| | | itxtIgnoreCount.Margin = new Padding(2, 3, 2, 3); |
| | | itxtIgnoreCount.Location = new Point(375, 124); |
| | | itxtIgnoreCount.Margin = new Padding(3, 4, 3, 4); |
| | | itxtIgnoreCount.Name = "itxtIgnoreCount"; |
| | | itxtIgnoreCount.Size = new Size(98, 23); |
| | | itxtIgnoreCount.Size = new Size(125, 27); |
| | | itxtIgnoreCount.TabIndex = 9; |
| | | itxtIgnoreCount.Text = "0"; |
| | | // |
| | | // label12 |
| | | // |
| | | label12.AutoSize = true; |
| | | label12.Location = new Point(2, 153); |
| | | label12.Margin = new Padding(2, 0, 2, 0); |
| | | label12.MaximumSize = new Size(0, 28); |
| | | label12.MinimumSize = new Size(0, 28); |
| | | label12.Location = new Point(3, 180); |
| | | label12.MaximumSize = new Size(0, 33); |
| | | label12.MinimumSize = new Size(0, 33); |
| | | label12.Name = "label12"; |
| | | label12.Size = new Size(32, 28); |
| | | label12.Size = new Size(39, 33); |
| | | label12.TabIndex = 11; |
| | | label12.Text = "极性"; |
| | | label12.TextAlign = ContentAlignment.MiddleCenter; |
| | |
| | | // label13 |
| | | // |
| | | label13.AutoSize = true; |
| | | label13.Location = new Point(200, 153); |
| | | label13.Margin = new Padding(2, 0, 2, 0); |
| | | label13.MaximumSize = new Size(0, 28); |
| | | label13.MinimumSize = new Size(0, 28); |
| | | label13.Location = new Point(259, 180); |
| | | label13.MaximumSize = new Size(0, 33); |
| | | label13.MinimumSize = new Size(0, 33); |
| | | label13.Name = "label13"; |
| | | label13.Size = new Size(56, 28); |
| | | label13.Size = new Size(69, 33); |
| | | label13.TabIndex = 12; |
| | | label13.Text = "边缘位置"; |
| | | label13.TextAlign = ContentAlignment.MiddleCenter; |
| | |
| | | // cmbTransition |
| | | // |
| | | cmbTransition.FormattingEnabled = true; |
| | | cmbTransition.Location = new Point(93, 156); |
| | | cmbTransition.Location = new Point(120, 184); |
| | | cmbTransition.Margin = new Padding(4, 4, 4, 4); |
| | | cmbTransition.Name = "cmbTransition"; |
| | | cmbTransition.Size = new Size(102, 25); |
| | | cmbTransition.Size = new Size(130, 28); |
| | | cmbTransition.TabIndex = 13; |
| | | // |
| | | // cmbSelect |
| | | // |
| | | cmbSelect.FormattingEnabled = true; |
| | | cmbSelect.Location = new Point(291, 156); |
| | | cmbSelect.Location = new Point(376, 184); |
| | | cmbSelect.Margin = new Padding(4, 4, 4, 4); |
| | | cmbSelect.Name = "cmbSelect"; |
| | | cmbSelect.Size = new Size(103, 25); |
| | | cmbSelect.Size = new Size(131, 28); |
| | | cmbSelect.TabIndex = 14; |
| | | // |
| | | // btnShowROI |
| | | // |
| | | btnShowROI.Dock = DockStyle.Fill; |
| | | btnShowROI.Location = new Point(4, 244); |
| | | btnShowROI.Margin = new Padding(4, 4, 4, 4); |
| | | btnShowROI.Name = "btnShowROI"; |
| | | btnShowROI.Size = new Size(108, 52); |
| | | btnShowROI.TabIndex = 15; |
| | | btnShowROI.Text = "显示找线区域"; |
| | | btnShowROI.UseVisualStyleBackColor = true; |
| | | btnShowROI.Click += btnShowROI_Click; |
| | | // |
| | | // pnlInputImage |
| | | // |
| | | pnlInputImage.Dock = DockStyle.Fill; |
| | | pnlInputImage.Location = new Point(3, 3); |
| | | pnlInputImage.Margin = new Padding(4); |
| | | pnlInputImage.Location = new Point(4, 4); |
| | | pnlInputImage.Margin = new Padding(5, 5, 5, 5); |
| | | pnlInputImage.Name = "pnlInputImage"; |
| | | pnlInputImage.Size = new Size(607, 510); |
| | | pnlInputImage.Size = new Size(782, 603); |
| | | pnlInputImage.TabIndex = 44; |
| | | // |
| | | // TopToolStrip |
| | | // |
| | | TopToolStrip.ImageScalingSize = new Size(20, 20); |
| | | TopToolStrip.Items.AddRange(new ToolStripItem[] { btnRun, btnLoadImage, btnSaveParas, btnLoadParas }); |
| | | TopToolStrip.Location = new Point(0, 0); |
| | | TopToolStrip.Name = "TopToolStrip"; |
| | | TopToolStrip.Size = new Size(1044, 25); |
| | | TopToolStrip.Size = new Size(1342, 27); |
| | | TopToolStrip.TabIndex = 45; |
| | | TopToolStrip.Text = "toolStrip1"; |
| | | // |
| | |
| | | btnRun.BackgroundImageLayout = ImageLayout.Zoom; |
| | | btnRun.ImageTransparentColor = Color.Magenta; |
| | | btnRun.Name = "btnRun"; |
| | | btnRun.Size = new Size(36, 22); |
| | | btnRun.Size = new Size(43, 24); |
| | | btnRun.Text = "运行"; |
| | | btnRun.Click += btnRun_Click; |
| | | // |
| | |
| | | // |
| | | btnLoadImage.ImageTransparentColor = Color.Magenta; |
| | | btnLoadImage.Name = "btnLoadImage"; |
| | | btnLoadImage.Size = new Size(36, 22); |
| | | btnLoadImage.Size = new Size(43, 24); |
| | | btnLoadImage.Text = "导图"; |
| | | btnLoadImage.Click += btnLoadImage_Click; |
| | | // |
| | |
| | | // |
| | | btnSaveParas.ImageTransparentColor = Color.Magenta; |
| | | btnSaveParas.Name = "btnSaveParas"; |
| | | btnSaveParas.Size = new Size(36, 22); |
| | | btnSaveParas.Size = new Size(43, 24); |
| | | btnSaveParas.Text = "保存"; |
| | | btnSaveParas.Click += btnSaveParas_Click; |
| | | // |
| | |
| | | // |
| | | btnLoadParas.ImageTransparentColor = Color.Magenta; |
| | | btnLoadParas.Name = "btnLoadParas"; |
| | | btnLoadParas.Size = new Size(36, 22); |
| | | btnLoadParas.Size = new Size(43, 24); |
| | | btnLoadParas.Text = "加载"; |
| | | btnLoadParas.Click += btnLoadParas_Click; |
| | | // |
| | | // BtmStatusStrip |
| | | // |
| | | BtmStatusStrip.ImageScalingSize = new Size(20, 20); |
| | | BtmStatusStrip.Items.AddRange(new ToolStripItem[] { lblResult, lblMsg, lblRunTime }); |
| | | BtmStatusStrip.Location = new Point(0, 577); |
| | | BtmStatusStrip.Location = new Point(0, 679); |
| | | BtmStatusStrip.Name = "BtmStatusStrip"; |
| | | BtmStatusStrip.Size = new Size(1044, 22); |
| | | BtmStatusStrip.Padding = new Padding(1, 0, 18, 0); |
| | | BtmStatusStrip.Size = new Size(1342, 26); |
| | | BtmStatusStrip.TabIndex = 46; |
| | | BtmStatusStrip.Text = "statusStrip1"; |
| | | // |
| | | // lblResult |
| | | // |
| | | lblResult.Name = "lblResult"; |
| | | lblResult.Size = new Size(34, 17); |
| | | lblResult.Size = new Size(42, 20); |
| | | lblResult.Text = "True"; |
| | | // |
| | | // lblMsg |
| | | // |
| | | lblMsg.Name = "lblMsg"; |
| | | lblMsg.Size = new Size(56, 17); |
| | | lblMsg.Size = new Size(69, 20); |
| | | lblMsg.Text = "运行成功"; |
| | | // |
| | | // lblRunTime |
| | | // |
| | | lblRunTime.Name = "lblRunTime"; |
| | | lblRunTime.Size = new Size(32, 17); |
| | | lblRunTime.Size = new Size(39, 20); |
| | | lblRunTime.Text = "0ms"; |
| | | // |
| | | // MainTableLayoutPanel |
| | |
| | | MainTableLayoutPanel.Controls.Add(parasTabControl, 0, 0); |
| | | MainTableLayoutPanel.Controls.Add(imgTabControl, 1, 0); |
| | | MainTableLayoutPanel.Dock = DockStyle.Fill; |
| | | MainTableLayoutPanel.Location = new Point(0, 25); |
| | | MainTableLayoutPanel.Location = new Point(0, 27); |
| | | MainTableLayoutPanel.Margin = new Padding(4, 4, 4, 4); |
| | | MainTableLayoutPanel.Name = "MainTableLayoutPanel"; |
| | | MainTableLayoutPanel.RowCount = 1; |
| | | MainTableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); |
| | | MainTableLayoutPanel.Size = new Size(1044, 552); |
| | | MainTableLayoutPanel.Size = new Size(1342, 652); |
| | | MainTableLayoutPanel.TabIndex = 47; |
| | | // |
| | | // parasTabControl |
| | |
| | | parasTabControl.Controls.Add(tabPage5); |
| | | parasTabControl.Controls.Add(tabPage2); |
| | | parasTabControl.Dock = DockStyle.Fill; |
| | | parasTabControl.Location = new Point(3, 3); |
| | | parasTabControl.Location = new Point(4, 4); |
| | | parasTabControl.Margin = new Padding(4, 4, 4, 4); |
| | | parasTabControl.Name = "parasTabControl"; |
| | | parasTabControl.SelectedIndex = 0; |
| | | parasTabControl.Size = new Size(411, 546); |
| | | parasTabControl.Size = new Size(528, 644); |
| | | parasTabControl.TabIndex = 48; |
| | | // |
| | | // tabPage1 |
| | | // |
| | | tabPage1.Controls.Add(tablePanelParas); |
| | | tabPage1.Location = new Point(4, 26); |
| | | tabPage1.Location = new Point(4, 29); |
| | | tabPage1.Margin = new Padding(4, 4, 4, 4); |
| | | tabPage1.Name = "tabPage1"; |
| | | tabPage1.Padding = new Padding(3); |
| | | tabPage1.Size = new Size(403, 516); |
| | | tabPage1.Padding = new Padding(4, 4, 4, 4); |
| | | tabPage1.Size = new Size(520, 611); |
| | | tabPage1.TabIndex = 0; |
| | | tabPage1.Text = "输入参数"; |
| | | tabPage1.UseVisualStyleBackColor = true; |
| | |
| | | // tabPage5 |
| | | // |
| | | tabPage5.Controls.Add(tableLayoutPanel2); |
| | | tabPage5.Location = new Point(4, 26); |
| | | tabPage5.Location = new Point(4, 29); |
| | | tabPage5.Margin = new Padding(4, 4, 4, 4); |
| | | tabPage5.Name = "tabPage5"; |
| | | tabPage5.Size = new Size(403, 516); |
| | | tabPage5.Size = new Size(520, 611); |
| | | tabPage5.TabIndex = 2; |
| | | tabPage5.Text = "运行参数"; |
| | | tabPage5.UseVisualStyleBackColor = true; |
| | |
| | | // tableLayoutPanel2 |
| | | // |
| | | tableLayoutPanel2.ColumnCount = 4; |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 60F)); |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 150F)); |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 20F)); |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 77F)); |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 193F)); |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 26F)); |
| | | tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); |
| | | tableLayoutPanel2.Controls.Add(cmbTypeRoi, 1, 0); |
| | | tableLayoutPanel2.Controls.Add(label21, 0, 0); |
| | | tableLayoutPanel2.Controls.Add(label22, 0, 1); |
| | | tableLayoutPanel2.Controls.Add(cmbFixture, 1, 1); |
| | | tableLayoutPanel2.Controls.Add(ckbDrawRoi, 2, 0); |
| | | tableLayoutPanel2.Location = new Point(3, 3); |
| | | tableLayoutPanel2.Location = new Point(4, 4); |
| | | tableLayoutPanel2.Margin = new Padding(4, 4, 4, 4); |
| | | tableLayoutPanel2.Name = "tableLayoutPanel2"; |
| | | tableLayoutPanel2.RowCount = 8; |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 35F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 35F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 35F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 35F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 35F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 35F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 35F)); |
| | | tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); |
| | | tableLayoutPanel2.Size = new Size(323, 309); |
| | | tableLayoutPanel2.Size = new Size(415, 364); |
| | | tableLayoutPanel2.TabIndex = 4; |
| | | // |
| | | // cmbTypeRoi |
| | | // |
| | | cmbTypeRoi.Enabled = false; |
| | | cmbTypeRoi.FormattingEnabled = true; |
| | | cmbTypeRoi.Location = new Point(63, 3); |
| | | cmbTypeRoi.Location = new Point(81, 4); |
| | | cmbTypeRoi.Margin = new Padding(4, 4, 4, 4); |
| | | cmbTypeRoi.Name = "cmbTypeRoi"; |
| | | cmbTypeRoi.Size = new Size(121, 25); |
| | | cmbTypeRoi.Size = new Size(154, 28); |
| | | cmbTypeRoi.TabIndex = 1; |
| | | cmbTypeRoi.SelectedIndexChanged += cmbTypeRoi_SelectedIndexChanged; |
| | | // |
| | |
| | | // |
| | | label21.AutoSize = true; |
| | | label21.Dock = DockStyle.Fill; |
| | | label21.Location = new Point(3, 0); |
| | | label21.Location = new Point(4, 0); |
| | | label21.Margin = new Padding(4, 0, 4, 0); |
| | | label21.Name = "label21"; |
| | | label21.Size = new Size(54, 30); |
| | | label21.Size = new Size(69, 35); |
| | | label21.TabIndex = 3; |
| | | label21.Text = "ROI"; |
| | | label21.TextAlign = ContentAlignment.MiddleCenter; |
| | |
| | | // |
| | | label22.AutoSize = true; |
| | | label22.Dock = DockStyle.Fill; |
| | | label22.Location = new Point(3, 30); |
| | | label22.Location = new Point(4, 35); |
| | | label22.Margin = new Padding(4, 0, 4, 0); |
| | | label22.Name = "label22"; |
| | | label22.Size = new Size(54, 30); |
| | | label22.Size = new Size(69, 35); |
| | | label22.TabIndex = 4; |
| | | label22.Text = "Fixture"; |
| | | label22.TextAlign = ContentAlignment.MiddleCenter; |
| | |
| | | // cmbFixture |
| | | // |
| | | cmbFixture.FormattingEnabled = true; |
| | | cmbFixture.Location = new Point(63, 33); |
| | | cmbFixture.Location = new Point(81, 39); |
| | | cmbFixture.Margin = new Padding(4, 4, 4, 4); |
| | | cmbFixture.Name = "cmbFixture"; |
| | | cmbFixture.Size = new Size(121, 25); |
| | | cmbFixture.Size = new Size(154, 28); |
| | | cmbFixture.TabIndex = 5; |
| | | cmbFixture.SelectedIndexChanged += cmbFixture_SelectedIndexChanged; |
| | | // |
| | |
| | | // |
| | | ckbDrawRoi.AutoSize = true; |
| | | ckbDrawRoi.CheckAlign = ContentAlignment.MiddleCenter; |
| | | ckbDrawRoi.Location = new Point(213, 3); |
| | | ckbDrawRoi.Location = new Point(274, 4); |
| | | ckbDrawRoi.Margin = new Padding(4, 4, 4, 4); |
| | | ckbDrawRoi.Name = "ckbDrawRoi"; |
| | | ckbDrawRoi.Size = new Size(14, 14); |
| | | ckbDrawRoi.Size = new Size(18, 17); |
| | | ckbDrawRoi.TabIndex = 2; |
| | | ckbDrawRoi.UseVisualStyleBackColor = true; |
| | | ckbDrawRoi.CheckedChanged += ckbDrawRoi_CheckedChanged; |
| | |
| | | // tabPage2 |
| | | // |
| | | tabPage2.Controls.Add(tableLayoutResults); |
| | | tabPage2.Location = new Point(4, 26); |
| | | tabPage2.Location = new Point(4, 29); |
| | | tabPage2.Margin = new Padding(4, 4, 4, 4); |
| | | tabPage2.Name = "tabPage2"; |
| | | tabPage2.Padding = new Padding(3); |
| | | tabPage2.Size = new Size(403, 516); |
| | | tabPage2.Padding = new Padding(4, 4, 4, 4); |
| | | tabPage2.Size = new Size(520, 611); |
| | | tabPage2.TabIndex = 1; |
| | | tabPage2.Text = "输出结果"; |
| | | tabPage2.UseVisualStyleBackColor = true; |
| | |
| | | // tableLayoutResults |
| | | // |
| | | tableLayoutResults.ColumnCount = 2; |
| | | tableLayoutResults.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 100F)); |
| | | tableLayoutResults.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 129F)); |
| | | tableLayoutResults.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); |
| | | tableLayoutResults.Controls.Add(dtxtHeight, 1, 4); |
| | | tableLayoutResults.Controls.Add(label9, 0, 4); |
| | |
| | | tableLayoutResults.Controls.Add(label18, 0, 5); |
| | | tableLayoutResults.Controls.Add(dtxtCount, 1, 5); |
| | | tableLayoutResults.Dock = DockStyle.Fill; |
| | | tableLayoutResults.Location = new Point(3, 3); |
| | | tableLayoutResults.Margin = new Padding(2, 3, 2, 3); |
| | | tableLayoutResults.Location = new Point(4, 4); |
| | | tableLayoutResults.Margin = new Padding(3, 4, 3, 4); |
| | | tableLayoutResults.Name = "tableLayoutResults"; |
| | | tableLayoutResults.RowCount = 10; |
| | | tableLayoutResults.RowStyles.Add(new RowStyle(SizeType.Percent, 10F)); |
| | |
| | | tableLayoutResults.RowStyles.Add(new RowStyle(SizeType.Percent, 10F)); |
| | | tableLayoutResults.RowStyles.Add(new RowStyle(SizeType.Percent, 10F)); |
| | | tableLayoutResults.RowStyles.Add(new RowStyle(SizeType.Percent, 10F)); |
| | | tableLayoutResults.Size = new Size(397, 510); |
| | | tableLayoutResults.Size = new Size(512, 603); |
| | | tableLayoutResults.TabIndex = 1; |
| | | // |
| | | // dtxtHeight |
| | | // |
| | | dtxtHeight.Dock = DockStyle.Fill; |
| | | dtxtHeight.Location = new Point(102, 207); |
| | | dtxtHeight.Margin = new Padding(2, 3, 2, 3); |
| | | dtxtHeight.Location = new Point(132, 244); |
| | | dtxtHeight.Margin = new Padding(3, 4, 3, 4); |
| | | dtxtHeight.Name = "dtxtHeight"; |
| | | dtxtHeight.ReadOnly = true; |
| | | dtxtHeight.Size = new Size(293, 23); |
| | | dtxtHeight.Size = new Size(377, 27); |
| | | dtxtHeight.TabIndex = 9; |
| | | // |
| | | // label9 |
| | | // |
| | | label9.AutoSize = true; |
| | | label9.Dock = DockStyle.Fill; |
| | | label9.Location = new Point(2, 204); |
| | | label9.Margin = new Padding(2, 0, 2, 0); |
| | | label9.MaximumSize = new Size(0, 28); |
| | | label9.MinimumSize = new Size(0, 28); |
| | | label9.Location = new Point(3, 240); |
| | | label9.MaximumSize = new Size(0, 33); |
| | | label9.MinimumSize = new Size(0, 33); |
| | | label9.Name = "label9"; |
| | | label9.Size = new Size(96, 28); |
| | | label9.Size = new Size(123, 33); |
| | | label9.TabIndex = 3; |
| | | label9.Text = "高度"; |
| | | label9.TextAlign = ContentAlignment.TopCenter; |
| | |
| | | // |
| | | label5.AutoSize = true; |
| | | label5.Dock = DockStyle.Fill; |
| | | label5.Location = new Point(2, 0); |
| | | label5.Margin = new Padding(2, 0, 2, 0); |
| | | label5.MaximumSize = new Size(0, 28); |
| | | label5.MinimumSize = new Size(0, 28); |
| | | label5.Location = new Point(3, 0); |
| | | label5.MaximumSize = new Size(0, 33); |
| | | label5.MinimumSize = new Size(0, 33); |
| | | label5.Name = "label5"; |
| | | label5.Size = new Size(96, 28); |
| | | label5.Size = new Size(123, 33); |
| | | label5.TabIndex = 0; |
| | | label5.Text = "X"; |
| | | label5.TextAlign = ContentAlignment.TopCenter; |
| | |
| | | // |
| | | label6.AutoSize = true; |
| | | label6.Dock = DockStyle.Fill; |
| | | label6.Location = new Point(2, 51); |
| | | label6.Margin = new Padding(2, 0, 2, 0); |
| | | label6.MaximumSize = new Size(0, 28); |
| | | label6.MinimumSize = new Size(0, 28); |
| | | label6.Location = new Point(3, 60); |
| | | label6.MaximumSize = new Size(0, 33); |
| | | label6.MinimumSize = new Size(0, 33); |
| | | label6.Name = "label6"; |
| | | label6.Size = new Size(96, 28); |
| | | label6.Size = new Size(123, 33); |
| | | label6.TabIndex = 1; |
| | | label6.Text = "Y"; |
| | | label6.TextAlign = ContentAlignment.TopCenter; |
| | |
| | | // |
| | | label7.AutoSize = true; |
| | | label7.Dock = DockStyle.Fill; |
| | | label7.Location = new Point(2, 102); |
| | | label7.Margin = new Padding(2, 0, 2, 0); |
| | | label7.MaximumSize = new Size(0, 28); |
| | | label7.MinimumSize = new Size(0, 28); |
| | | label7.Location = new Point(3, 120); |
| | | label7.MaximumSize = new Size(0, 33); |
| | | label7.MinimumSize = new Size(0, 33); |
| | | label7.Name = "label7"; |
| | | label7.Size = new Size(96, 28); |
| | | label7.Size = new Size(123, 33); |
| | | label7.TabIndex = 2; |
| | | label7.Text = "角度(°)"; |
| | | label7.TextAlign = ContentAlignment.TopCenter; |
| | |
| | | // |
| | | label8.AutoSize = true; |
| | | label8.Dock = DockStyle.Fill; |
| | | label8.Location = new Point(2, 153); |
| | | label8.Margin = new Padding(2, 0, 2, 0); |
| | | label8.MaximumSize = new Size(0, 28); |
| | | label8.MinimumSize = new Size(0, 28); |
| | | label8.Location = new Point(3, 180); |
| | | label8.MaximumSize = new Size(0, 33); |
| | | label8.MinimumSize = new Size(0, 33); |
| | | label8.Name = "label8"; |
| | | label8.Size = new Size(96, 28); |
| | | label8.Size = new Size(123, 33); |
| | | label8.TabIndex = 3; |
| | | label8.Text = "宽度"; |
| | | label8.TextAlign = ContentAlignment.TopCenter; |
| | |
| | | // dtxtCenterX |
| | | // |
| | | dtxtCenterX.Dock = DockStyle.Fill; |
| | | dtxtCenterX.Location = new Point(102, 3); |
| | | dtxtCenterX.Margin = new Padding(2, 3, 2, 3); |
| | | dtxtCenterX.Location = new Point(132, 4); |
| | | dtxtCenterX.Margin = new Padding(3, 4, 3, 4); |
| | | dtxtCenterX.Name = "dtxtCenterX"; |
| | | dtxtCenterX.ReadOnly = true; |
| | | dtxtCenterX.Size = new Size(293, 23); |
| | | dtxtCenterX.Size = new Size(377, 27); |
| | | dtxtCenterX.TabIndex = 5; |
| | | // |
| | | // dtxtCenterY |
| | | // |
| | | dtxtCenterY.Dock = DockStyle.Fill; |
| | | dtxtCenterY.Location = new Point(102, 54); |
| | | dtxtCenterY.Margin = new Padding(2, 3, 2, 3); |
| | | dtxtCenterY.Location = new Point(132, 64); |
| | | dtxtCenterY.Margin = new Padding(3, 4, 3, 4); |
| | | dtxtCenterY.Name = "dtxtCenterY"; |
| | | dtxtCenterY.ReadOnly = true; |
| | | dtxtCenterY.Size = new Size(293, 23); |
| | | dtxtCenterY.Size = new Size(377, 27); |
| | | dtxtCenterY.TabIndex = 6; |
| | | // |
| | | // dtxtAngle |
| | | // |
| | | dtxtAngle.Dock = DockStyle.Fill; |
| | | dtxtAngle.Location = new Point(102, 105); |
| | | dtxtAngle.Margin = new Padding(2, 3, 2, 3); |
| | | dtxtAngle.Location = new Point(132, 124); |
| | | dtxtAngle.Margin = new Padding(3, 4, 3, 4); |
| | | dtxtAngle.Name = "dtxtAngle"; |
| | | dtxtAngle.ReadOnly = true; |
| | | dtxtAngle.Size = new Size(293, 23); |
| | | dtxtAngle.Size = new Size(377, 27); |
| | | dtxtAngle.TabIndex = 7; |
| | | // |
| | | // dtxtWidth |
| | | // |
| | | dtxtWidth.Dock = DockStyle.Fill; |
| | | dtxtWidth.Location = new Point(102, 156); |
| | | dtxtWidth.Margin = new Padding(2, 3, 2, 3); |
| | | dtxtWidth.Location = new Point(132, 184); |
| | | dtxtWidth.Margin = new Padding(3, 4, 3, 4); |
| | | dtxtWidth.Name = "dtxtWidth"; |
| | | dtxtWidth.ReadOnly = true; |
| | | dtxtWidth.Size = new Size(293, 23); |
| | | dtxtWidth.Size = new Size(377, 27); |
| | | dtxtWidth.TabIndex = 8; |
| | | // |
| | | // label18 |
| | | // |
| | | label18.AutoSize = true; |
| | | label18.Dock = DockStyle.Fill; |
| | | label18.Location = new Point(3, 255); |
| | | label18.Location = new Point(4, 300); |
| | | label18.Margin = new Padding(4, 0, 4, 0); |
| | | label18.Name = "label18"; |
| | | label18.Size = new Size(94, 51); |
| | | label18.Size = new Size(121, 60); |
| | | label18.TabIndex = 10; |
| | | label18.Text = "数量"; |
| | | label18.TextAlign = ContentAlignment.TopCenter; |
| | |
| | | // dtxtCount |
| | | // |
| | | dtxtCount.Dock = DockStyle.Fill; |
| | | dtxtCount.Location = new Point(103, 258); |
| | | dtxtCount.Location = new Point(133, 304); |
| | | dtxtCount.Margin = new Padding(4, 4, 4, 4); |
| | | dtxtCount.Name = "dtxtCount"; |
| | | dtxtCount.ReadOnly = true; |
| | | dtxtCount.Size = new Size(291, 23); |
| | | dtxtCount.Size = new Size(375, 27); |
| | | dtxtCount.TabIndex = 11; |
| | | // |
| | | // imgTabControl |
| | |
| | | imgTabControl.Controls.Add(tabPageInputImage); |
| | | imgTabControl.Controls.Add(tabPageRecordImage); |
| | | imgTabControl.Dock = DockStyle.Fill; |
| | | imgTabControl.Location = new Point(420, 3); |
| | | imgTabControl.Location = new Point(540, 4); |
| | | imgTabControl.Margin = new Padding(4, 4, 4, 4); |
| | | imgTabControl.Name = "imgTabControl"; |
| | | imgTabControl.SelectedIndex = 0; |
| | | imgTabControl.Size = new Size(621, 546); |
| | | imgTabControl.Size = new Size(798, 644); |
| | | imgTabControl.TabIndex = 49; |
| | | // |
| | | // tabPageInputImage |
| | | // |
| | | tabPageInputImage.Controls.Add(pnlInputImage); |
| | | tabPageInputImage.Location = new Point(4, 26); |
| | | tabPageInputImage.Location = new Point(4, 29); |
| | | tabPageInputImage.Margin = new Padding(4, 4, 4, 4); |
| | | tabPageInputImage.Name = "tabPageInputImage"; |
| | | tabPageInputImage.Padding = new Padding(3); |
| | | tabPageInputImage.Size = new Size(613, 516); |
| | | tabPageInputImage.Padding = new Padding(4, 4, 4, 4); |
| | | tabPageInputImage.Size = new Size(790, 611); |
| | | tabPageInputImage.TabIndex = 0; |
| | | tabPageInputImage.Text = "输入图像"; |
| | | tabPageInputImage.UseVisualStyleBackColor = true; |
| | |
| | | // tabPageRecordImage |
| | | // |
| | | tabPageRecordImage.Controls.Add(pnlRecordImage); |
| | | tabPageRecordImage.Location = new Point(4, 26); |
| | | tabPageRecordImage.Location = new Point(4, 29); |
| | | tabPageRecordImage.Margin = new Padding(4, 4, 4, 4); |
| | | tabPageRecordImage.Name = "tabPageRecordImage"; |
| | | tabPageRecordImage.Padding = new Padding(3); |
| | | tabPageRecordImage.Size = new Size(613, 516); |
| | | tabPageRecordImage.Padding = new Padding(4, 4, 4, 4); |
| | | tabPageRecordImage.Size = new Size(790, 609); |
| | | tabPageRecordImage.TabIndex = 1; |
| | | tabPageRecordImage.Text = "结果图像"; |
| | | tabPageRecordImage.UseVisualStyleBackColor = true; |
| | |
| | | // pnlRecordImage |
| | | // |
| | | pnlRecordImage.Dock = DockStyle.Fill; |
| | | pnlRecordImage.Location = new Point(3, 3); |
| | | pnlRecordImage.Margin = new Padding(4); |
| | | pnlRecordImage.Location = new Point(4, 4); |
| | | pnlRecordImage.Margin = new Padding(5, 5, 5, 5); |
| | | pnlRecordImage.Name = "pnlRecordImage"; |
| | | pnlRecordImage.Size = new Size(607, 510); |
| | | pnlRecordImage.Size = new Size(782, 601); |
| | | pnlRecordImage.TabIndex = 45; |
| | | // |
| | | // btnShowROI |
| | | // |
| | | btnShowROI.Dock = DockStyle.Fill; |
| | | btnShowROI.Location = new Point(3, 207); |
| | | btnShowROI.Name = "btnShowROI"; |
| | | btnShowROI.Size = new Size(84, 45); |
| | | btnShowROI.TabIndex = 15; |
| | | btnShowROI.Text = "显示找线区域"; |
| | | btnShowROI.UseVisualStyleBackColor = true; |
| | | btnShowROI.Click += btnShowROI_Click; |
| | | // |
| | | // HFindLineToolEdit |
| | | // |
| | | AutoScaleDimensions = new SizeF(7F, 17F); |
| | | AutoScaleDimensions = new SizeF(9F, 20F); |
| | | AutoScaleMode = AutoScaleMode.Font; |
| | | Controls.Add(MainTableLayoutPanel); |
| | | Controls.Add(BtmStatusStrip); |
| | | Controls.Add(TopToolStrip); |
| | | Margin = new Padding(2, 3, 2, 3); |
| | | Margin = new Padding(3, 4, 3, 4); |
| | | Name = "HFindLineToolEdit"; |
| | | Size = new Size(1044, 599); |
| | | Size = new Size(1342, 705); |
| | | Load += HFindLineToolEdit_Load; |
| | | tablePanelParas.ResumeLayout(false); |
| | | tablePanelParas.PerformLayout(); |