diff --git a/Tongue extraction_cropresizemethod/Tongue extraction.sln b/Tongue extraction_cropresizemethod/Tongue extraction.sln index 81c772d..d3135fb 100644 --- a/Tongue extraction_cropresizemethod/Tongue extraction.sln +++ b/Tongue extraction_cropresizemethod/Tongue extraction.sln @@ -5,8 +5,6 @@ MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeepTIAS1.9", "Tongue extraction\DeepTIAS1.9.csproj", "{AFD610B1-8D23-423A-AA0F-B09BA769BDD7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ColorSubdivision", "ColorSubdivision\ColorSubdivision.csproj", "{AD42A573-7AC3-4714-9D53-DB9921815CBB}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -20,6 +18,7 @@ {AFD610B1-8D23-423A-AA0F-B09BA769BDD7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {AFD610B1-8D23-423A-AA0F-B09BA769BDD7}.Debug|Any CPU.Build.0 = Debug|Any CPU {AFD610B1-8D23-423A-AA0F-B09BA769BDD7}.Debug|x64.ActiveCfg = Debug|x64 + {AFD610B1-8D23-423A-AA0F-B09BA769BDD7}.Debug|x64.Build.0 = Debug|x64 {AFD610B1-8D23-423A-AA0F-B09BA769BDD7}.Debug|x86.ActiveCfg = Debug|x64 {AFD610B1-8D23-423A-AA0F-B09BA769BDD7}.Debug|x86.Build.0 = Debug|x64 {AFD610B1-8D23-423A-AA0F-B09BA769BDD7}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -28,18 +27,6 @@ {AFD610B1-8D23-423A-AA0F-B09BA769BDD7}.Release|x64.Build.0 = Release|x64 {AFD610B1-8D23-423A-AA0F-B09BA769BDD7}.Release|x86.ActiveCfg = Release|Any CPU {AFD610B1-8D23-423A-AA0F-B09BA769BDD7}.Release|x86.Build.0 = Release|Any CPU - {AD42A573-7AC3-4714-9D53-DB9921815CBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {AD42A573-7AC3-4714-9D53-DB9921815CBB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {AD42A573-7AC3-4714-9D53-DB9921815CBB}.Debug|x64.ActiveCfg = Debug|x64 - {AD42A573-7AC3-4714-9D53-DB9921815CBB}.Debug|x64.Build.0 = Debug|x64 - {AD42A573-7AC3-4714-9D53-DB9921815CBB}.Debug|x86.ActiveCfg = Debug|Any CPU - {AD42A573-7AC3-4714-9D53-DB9921815CBB}.Debug|x86.Build.0 = Debug|Any CPU - {AD42A573-7AC3-4714-9D53-DB9921815CBB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {AD42A573-7AC3-4714-9D53-DB9921815CBB}.Release|Any CPU.Build.0 = Release|Any CPU - {AD42A573-7AC3-4714-9D53-DB9921815CBB}.Release|x64.ActiveCfg = Release|Any CPU - {AD42A573-7AC3-4714-9D53-DB9921815CBB}.Release|x64.Build.0 = Release|Any CPU - {AD42A573-7AC3-4714-9D53-DB9921815CBB}.Release|x86.ActiveCfg = Release|Any CPU - {AD42A573-7AC3-4714-9D53-DB9921815CBB}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Tongue extraction_cropresizemethod/Tongue extraction/Form1.Designer.cs b/Tongue extraction_cropresizemethod/Tongue extraction/Form1.Designer.cs index 473b399..bd233d3 100644 --- a/Tongue extraction_cropresizemethod/Tongue extraction/Form1.Designer.cs +++ b/Tongue extraction_cropresizemethod/Tongue extraction/Form1.Designer.cs @@ -30,13 +30,10 @@ { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.button_start = new System.Windows.Forms.Button(); - this.pictureBox_input = new System.Windows.Forms.PictureBox(); - this.pictureBox_detection = new System.Windows.Forms.PictureBox(); - this.pictureBox_cropResized = new System.Windows.Forms.PictureBox(); this.pictureBox_extraction = new System.Windows.Forms.PictureBox(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); + this.label_mode = new System.Windows.Forms.Label(); this.panel1 = new System.Windows.Forms.Panel(); - this.textBox1 = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); @@ -48,23 +45,30 @@ this.pictureBox_output = new System.Windows.Forms.PictureBox(); this.pictureBox_outputSRG = new System.Windows.Forms.PictureBox(); this.pictureBox_maskSRG = new System.Windows.Forms.PictureBox(); - this.pictureBox_gloss = new System.Windows.Forms.PictureBox(); + this.pictureBox_last = new System.Windows.Forms.PictureBox(); this.label_processingFileName = new System.Windows.Forms.Label(); this.label_totalProgress = new System.Windows.Forms.Label(); this.panel2 = new System.Windows.Forms.Panel(); this.button_pause = new System.Windows.Forms.Button(); this.backgroundWorker1 = new System.ComponentModel.BackgroundWorker(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox_input)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox_detection)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox_cropResized)).BeginInit(); + this.pictureBox_cropResized = new System.Windows.Forms.PictureBox(); + this.pictureBox_detection = new System.Windows.Forms.PictureBox(); + this.pictureBox_input = new System.Windows.Forms.PictureBox(); + this.panel3 = new System.Windows.Forms.Panel(); + this.button_mode = new System.Windows.Forms.Button(); + this.textBox1 = new System.Windows.Forms.TextBox(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox_extraction)).BeginInit(); this.tableLayoutPanel1.SuspendLayout(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox_output)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox_outputSRG)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox_maskSRG)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox_gloss)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_last)).BeginInit(); this.panel2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_cropResized)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_detection)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_input)).BeginInit(); + this.panel3.SuspendLayout(); this.SuspendLayout(); // // button_start @@ -73,45 +77,12 @@ this.button_start.Location = new System.Drawing.Point(0, 0); this.button_start.Margin = new System.Windows.Forms.Padding(1, 2, 1, 2); this.button_start.Name = "button_start"; - this.button_start.Size = new System.Drawing.Size(758, 49); + this.button_start.Size = new System.Drawing.Size(246, 49); this.button_start.TabIndex = 0; this.button_start.Text = "Start"; this.button_start.UseVisualStyleBackColor = true; this.button_start.Click += new System.EventHandler(this.Button_start_Click); // - // pictureBox_input - // - this.pictureBox_input.Dock = System.Windows.Forms.DockStyle.Fill; - this.pictureBox_input.Location = new System.Drawing.Point(3, 4); - this.pictureBox_input.Margin = new System.Windows.Forms.Padding(1, 2, 1, 2); - this.pictureBox_input.Name = "pictureBox_input"; - this.pictureBox_input.Size = new System.Drawing.Size(250, 209); - this.pictureBox_input.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBox_input.TabIndex = 1; - this.pictureBox_input.TabStop = false; - // - // pictureBox_detection - // - this.pictureBox_detection.Dock = System.Windows.Forms.DockStyle.Fill; - this.pictureBox_detection.Location = new System.Drawing.Point(257, 4); - this.pictureBox_detection.Margin = new System.Windows.Forms.Padding(1, 2, 1, 2); - this.pictureBox_detection.Name = "pictureBox_detection"; - this.pictureBox_detection.Size = new System.Drawing.Size(250, 209); - this.pictureBox_detection.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBox_detection.TabIndex = 2; - this.pictureBox_detection.TabStop = false; - // - // pictureBox_cropResized - // - this.pictureBox_cropResized.Dock = System.Windows.Forms.DockStyle.Fill; - this.pictureBox_cropResized.Location = new System.Drawing.Point(511, 4); - this.pictureBox_cropResized.Margin = new System.Windows.Forms.Padding(1, 2, 1, 2); - this.pictureBox_cropResized.Name = "pictureBox_cropResized"; - this.pictureBox_cropResized.Size = new System.Drawing.Size(250, 209); - this.pictureBox_cropResized.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBox_cropResized.TabIndex = 3; - this.pictureBox_cropResized.TabStop = false; - // // pictureBox_extraction // this.pictureBox_extraction.Dock = System.Windows.Forms.DockStyle.Fill; @@ -131,6 +102,8 @@ this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel1.Controls.Add(this.panel3, 1, 4); + this.tableLayoutPanel1.Controls.Add(this.label_mode, 1, 5); this.tableLayoutPanel1.Controls.Add(this.panel1, 0, 4); this.tableLayoutPanel1.Controls.Add(this.pictureBox_detection, 1, 0); this.tableLayoutPanel1.Controls.Add(this.pictureBox_input, 0, 0); @@ -147,10 +120,11 @@ this.tableLayoutPanel1.Controls.Add(this.pictureBox_output, 3, 0); this.tableLayoutPanel1.Controls.Add(this.pictureBox_outputSRG, 0, 2); this.tableLayoutPanel1.Controls.Add(this.pictureBox_maskSRG, 1, 2); - this.tableLayoutPanel1.Controls.Add(this.pictureBox_gloss, 3, 2); + this.tableLayoutPanel1.Controls.Add(this.pictureBox_last, 3, 2); this.tableLayoutPanel1.Controls.Add(this.label_processingFileName, 0, 5); this.tableLayoutPanel1.Controls.Add(this.label_totalProgress, 2, 5); this.tableLayoutPanel1.Controls.Add(this.panel2, 3, 4); + this.tableLayoutPanel1.Controls.Add(this.textBox1, 2, 4); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(0, 0); this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(1, 2, 1, 2); @@ -162,30 +136,32 @@ this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.11111F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(1018, 554); this.tableLayoutPanel1.TabIndex = 5; // + // label_mode + // + this.label_mode.AutoSize = true; + this.label_mode.BackColor = System.Drawing.Color.White; + this.label_mode.Dock = System.Windows.Forms.DockStyle.Fill; + this.label_mode.Location = new System.Drawing.Point(513, 531); + this.label_mode.Name = "label_mode"; + this.label_mode.Size = new System.Drawing.Size(246, 21); + this.label_mode.TabIndex = 22; + this.label_mode.Text = "mode="; + this.label_mode.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // // panel1 // - this.tableLayoutPanel1.SetColumnSpan(this.panel1, 3); - this.panel1.Controls.Add(this.textBox1); this.panel1.Controls.Add(this.button_start); - this.panel1.Dock = System.Windows.Forms.DockStyle.Fill; + this.panel1.Dock = System.Windows.Forms.DockStyle.Left; this.panel1.Location = new System.Drawing.Point(3, 478); this.panel1.Margin = new System.Windows.Forms.Padding(1, 2, 1, 2); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(758, 49); + this.panel1.Size = new System.Drawing.Size(246, 49); this.panel1.TabIndex = 6; // - // textBox1 - // - this.textBox1.Location = new System.Drawing.Point(486, -1); - this.textBox1.Multiline = true; - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(269, 60); - this.textBox1.TabIndex = 1; - this.textBox1.Visible = false; - // // label1 // this.label1.AutoSize = true; @@ -312,15 +288,15 @@ this.pictureBox_maskSRG.TabIndex = 17; this.pictureBox_maskSRG.TabStop = false; // - // pictureBox_gloss + // pictureBox_last // - this.pictureBox_gloss.Dock = System.Windows.Forms.DockStyle.Fill; - this.pictureBox_gloss.Location = new System.Drawing.Point(767, 242); - this.pictureBox_gloss.Name = "pictureBox_gloss"; - this.pictureBox_gloss.Size = new System.Drawing.Size(246, 207); - this.pictureBox_gloss.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.pictureBox_gloss.TabIndex = 18; - this.pictureBox_gloss.TabStop = false; + this.pictureBox_last.Dock = System.Windows.Forms.DockStyle.Fill; + this.pictureBox_last.Location = new System.Drawing.Point(767, 242); + this.pictureBox_last.Name = "pictureBox_last"; + this.pictureBox_last.Size = new System.Drawing.Size(246, 207); + this.pictureBox_last.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBox_last.TabIndex = 18; + this.pictureBox_last.TabStop = false; // // label_processingFileName // @@ -339,11 +315,10 @@ // this.label_totalProgress.AutoSize = true; this.label_totalProgress.BackColor = System.Drawing.Color.White; - this.tableLayoutPanel1.SetColumnSpan(this.label_totalProgress, 2); this.label_totalProgress.Dock = System.Windows.Forms.DockStyle.Fill; - this.label_totalProgress.Location = new System.Drawing.Point(513, 531); + this.label_totalProgress.Location = new System.Drawing.Point(767, 531); this.label_totalProgress.Name = "label_totalProgress"; - this.label_totalProgress.Size = new System.Drawing.Size(500, 21); + this.label_totalProgress.Size = new System.Drawing.Size(246, 21); this.label_totalProgress.TabIndex = 20; this.label_totalProgress.Text = "Total Progress: 0/0"; this.label_totalProgress.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; @@ -374,6 +349,70 @@ this.backgroundWorker1.WorkerSupportsCancellation = true; this.backgroundWorker1.DoWork += new System.ComponentModel.DoWorkEventHandler(this.BackgroundWorker1_DoWork); // + // pictureBox_cropResized + // + this.pictureBox_cropResized.Dock = System.Windows.Forms.DockStyle.Fill; + this.pictureBox_cropResized.Location = new System.Drawing.Point(511, 4); + this.pictureBox_cropResized.Margin = new System.Windows.Forms.Padding(1, 2, 1, 2); + this.pictureBox_cropResized.Name = "pictureBox_cropResized"; + this.pictureBox_cropResized.Size = new System.Drawing.Size(250, 209); + this.pictureBox_cropResized.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBox_cropResized.TabIndex = 3; + this.pictureBox_cropResized.TabStop = false; + // + // pictureBox_detection + // + this.pictureBox_detection.Dock = System.Windows.Forms.DockStyle.Fill; + this.pictureBox_detection.Location = new System.Drawing.Point(257, 4); + this.pictureBox_detection.Margin = new System.Windows.Forms.Padding(1, 2, 1, 2); + this.pictureBox_detection.Name = "pictureBox_detection"; + this.pictureBox_detection.Size = new System.Drawing.Size(250, 209); + this.pictureBox_detection.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBox_detection.TabIndex = 2; + this.pictureBox_detection.TabStop = false; + // + // pictureBox_input + // + this.pictureBox_input.Dock = System.Windows.Forms.DockStyle.Fill; + this.pictureBox_input.Location = new System.Drawing.Point(3, 4); + this.pictureBox_input.Margin = new System.Windows.Forms.Padding(1, 2, 1, 2); + this.pictureBox_input.Name = "pictureBox_input"; + this.pictureBox_input.Size = new System.Drawing.Size(250, 209); + this.pictureBox_input.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.pictureBox_input.TabIndex = 1; + this.pictureBox_input.TabStop = false; + // + // panel3 + // + this.panel3.Controls.Add(this.button_mode); + this.panel3.Dock = System.Windows.Forms.DockStyle.Left; + this.panel3.Location = new System.Drawing.Point(257, 478); + this.panel3.Margin = new System.Windows.Forms.Padding(1, 2, 1, 2); + this.panel3.Name = "panel3"; + this.panel3.Size = new System.Drawing.Size(246, 49); + this.panel3.TabIndex = 23; + // + // button_mode + // + this.button_mode.Dock = System.Windows.Forms.DockStyle.Fill; + this.button_mode.Location = new System.Drawing.Point(0, 0); + this.button_mode.Margin = new System.Windows.Forms.Padding(1, 2, 1, 2); + this.button_mode.Name = "button_mode"; + this.button_mode.Size = new System.Drawing.Size(246, 49); + this.button_mode.TabIndex = 0; + this.button_mode.Text = "Mode"; + this.button_mode.UseVisualStyleBackColor = true; + this.button_mode.Click += new System.EventHandler(this.button_mode_Click); + // + // textBox1 + // + this.textBox1.AcceptsReturn = true; + this.textBox1.Location = new System.Drawing.Point(513, 479); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(246, 19); + this.textBox1.TabIndex = 24; + this.textBox1.Visible = false; + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -385,19 +424,19 @@ this.Name = "Form1"; this.Text = "DeepTIAS1.8"; this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox_input)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox_detection)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox_cropResized)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox_extraction)).EndInit(); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox_output)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox_outputSRG)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox_maskSRG)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.pictureBox_gloss)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_last)).EndInit(); this.panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_cropResized)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_detection)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox_input)).EndInit(); + this.panel3.ResumeLayout(false); this.ResumeLayout(false); } @@ -405,9 +444,6 @@ #endregion private System.Windows.Forms.Button button_start; - private System.Windows.Forms.PictureBox pictureBox_input; - private System.Windows.Forms.PictureBox pictureBox_detection; - private System.Windows.Forms.PictureBox pictureBox_cropResized; private System.Windows.Forms.PictureBox pictureBox_extraction; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1; private System.Windows.Forms.Panel panel1; @@ -423,11 +459,17 @@ private System.Windows.Forms.PictureBox pictureBox_output; private System.Windows.Forms.PictureBox pictureBox_outputSRG; private System.Windows.Forms.PictureBox pictureBox_maskSRG; - private System.Windows.Forms.PictureBox pictureBox_gloss; + private System.Windows.Forms.PictureBox pictureBox_last; private System.Windows.Forms.Label label_processingFileName; - private System.Windows.Forms.Label label_totalProgress; private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Button button_pause; + private System.Windows.Forms.Label label_totalProgress; + private System.Windows.Forms.Label label_mode; + private System.Windows.Forms.Panel panel3; + private System.Windows.Forms.Button button_mode; + private System.Windows.Forms.PictureBox pictureBox_detection; + private System.Windows.Forms.PictureBox pictureBox_input; + private System.Windows.Forms.PictureBox pictureBox_cropResized; private System.Windows.Forms.TextBox textBox1; } } diff --git a/Tongue extraction_cropresizemethod/Tongue extraction/Form1.cs b/Tongue extraction_cropresizemethod/Tongue extraction/Form1.cs index 6192e82..71d3d00 100644 --- a/Tongue extraction_cropresizemethod/Tongue extraction/Form1.cs +++ b/Tongue extraction_cropresizemethod/Tongue extraction/Form1.cs @@ -104,8 +104,8 @@ pictureBox_maskSRG.Refresh(); pictureBox_extraction.Image = null; pictureBox_extraction.Refresh(); - pictureBox_gloss.Image = null; - pictureBox_gloss.Refresh(); + pictureBox_last.Image = null; + pictureBox_last.Refresh(); backgroundWorker1.RunWorkerAsync(); } @@ -434,8 +434,8 @@ pictureBox_maskSRG.Refresh(); pictureBox_extraction.Image = null; pictureBox_extraction.Refresh(); - pictureBox_gloss.Image = null; - pictureBox_gloss.Refresh(); + pictureBox_last.Image = null; + pictureBox_last.Refresh(); }); bitmap_bitch = OpenCvSharp.Extensions.BitmapConverter.ToBitmap(mat_input); byte_inputSegmentation = Bitmap2Byte(bitmap_bitch); @@ -616,8 +616,8 @@ bitmap_bitch = OpenCvSharp.Extensions.BitmapConverter.ToBitmap(mat_gloss); Invoke((MethodInvoker)delegate { - pictureBox_gloss.Image = bitmap_bitch; - pictureBox_gloss.Refresh(); + pictureBox_last.Image = bitmap_bitch; + pictureBox_last.Refresh(); }); label7.BackColor = Color.White; @@ -902,8 +902,8 @@ bitmap_bitch = OpenCvSharp.Extensions.BitmapConverter.ToBitmap(mat_gloss); Invoke((MethodInvoker)delegate { - pictureBox_gloss.Image = bitmap_bitch; - pictureBox_gloss.Refresh(); + pictureBox_last.Image = bitmap_bitch; + pictureBox_last.Refresh(); }); label7.BackColor = Color.White; @@ -955,5 +955,10 @@ sw.Close(); Console.WriteLine("file closed"); } + + private void button_mode_Click(object sender, EventArgs e) + { + + } } } \ No newline at end of file