Commit a9a6973d 张东亮

翻转板相机检测校准软件

1 个父辈 32a8f92d
...@@ -197,6 +197,7 @@ ...@@ -197,6 +197,7 @@
// //
// txtHL // txtHL
// //
this.txtHL.LargeChange = 1;
this.txtHL.Location = new System.Drawing.Point(16, 42); this.txtHL.Location = new System.Drawing.Point(16, 42);
this.txtHL.Maximum = 360; this.txtHL.Maximum = 360;
this.txtHL.Name = "txtHL"; this.txtHL.Name = "txtHL";
...@@ -206,6 +207,7 @@ ...@@ -206,6 +207,7 @@
// //
// txtSH // txtSH
// //
this.txtSH.LargeChange = 1;
this.txtSH.Location = new System.Drawing.Point(386, 249); this.txtSH.Location = new System.Drawing.Point(386, 249);
this.txtSH.Maximum = 255; this.txtSH.Maximum = 255;
this.txtSH.Name = "txtSH"; this.txtSH.Name = "txtSH";
...@@ -215,6 +217,7 @@ ...@@ -215,6 +217,7 @@
// //
// txtSL // txtSL
// //
this.txtSL.LargeChange = 1;
this.txtSL.Location = new System.Drawing.Point(26, 249); this.txtSL.Location = new System.Drawing.Point(26, 249);
this.txtSL.Maximum = 255; this.txtSL.Maximum = 255;
this.txtSL.Name = "txtSL"; this.txtSL.Name = "txtSL";
...@@ -224,6 +227,7 @@ ...@@ -224,6 +227,7 @@
// //
// txtLH // txtLH
// //
this.txtLH.LargeChange = 1;
this.txtLH.Location = new System.Drawing.Point(386, 140); this.txtLH.Location = new System.Drawing.Point(386, 140);
this.txtLH.Maximum = 255; this.txtLH.Maximum = 255;
this.txtLH.Name = "txtLH"; this.txtLH.Name = "txtLH";
...@@ -233,6 +237,7 @@ ...@@ -233,6 +237,7 @@
// //
// txtLL // txtLL
// //
this.txtLL.LargeChange = 1;
this.txtLL.Location = new System.Drawing.Point(16, 140); this.txtLL.Location = new System.Drawing.Point(16, 140);
this.txtLL.Maximum = 255; this.txtLL.Maximum = 255;
this.txtLL.Name = "txtLL"; this.txtLL.Name = "txtLL";
...@@ -242,6 +247,7 @@ ...@@ -242,6 +247,7 @@
// //
// txtHH // txtHH
// //
this.txtHH.LargeChange = 1;
this.txtHH.Location = new System.Drawing.Point(386, 42); this.txtHH.Location = new System.Drawing.Point(386, 42);
this.txtHH.Maximum = 360; this.txtHH.Maximum = 360;
this.txtHH.Name = "txtHH"; this.txtHH.Name = "txtHH";
......
...@@ -22,14 +22,14 @@ namespace ImgCheckReel ...@@ -22,14 +22,14 @@ namespace ImgCheckReel
public Form1() public Form1()
{ {
InitializeComponent(); InitializeComponent();
ConfigHelper.Config.PropertyBind("txtTotalCover", txtTotalCover, "Text", "TextChanged", "100"); ConfigHelper.Config.PropertyBind("CamTestReel_totalcover", txtTotalCover, "Text", "TextChanged", "100");
ConfigHelper.Config.PropertyBind("txtthreshold", txtthreshold, "Text", "TextChanged", "0.6"); ConfigHelper.Config.PropertyBind("CamTestReel_threshold", txtthreshold, "Text", "TextChanged", "0.6");
ConfigHelper.Config.PropertyBind("txtHL", txtHL, "Value", "Scroll", "40"); ConfigHelper.Config.PropertyBind("CamTestReel_HL", txtHL, "Value", "Scroll", "40");
ConfigHelper.Config.PropertyBind("txtHH", txtHH, "Value", "Scroll", "70"); ConfigHelper.Config.PropertyBind("CamTestReel_HH", txtHH, "Value", "Scroll", "70");
ConfigHelper.Config.PropertyBind("txtLL", txtLL, "Value", "Scroll", "15"); ConfigHelper.Config.PropertyBind("CamTestReel_LL", txtLL, "Value", "Scroll", "15");
ConfigHelper.Config.PropertyBind("txtLH", txtLH, "Value", "Scroll", "100"); ConfigHelper.Config.PropertyBind("CamTestReel_LH", txtLH, "Value", "Scroll", "100");
ConfigHelper.Config.PropertyBind("txtSL", txtSL, "Value", "Scroll", "20"); ConfigHelper.Config.PropertyBind("CamTestReel_SL", txtSL, "Value", "Scroll", "20");
ConfigHelper.Config.PropertyBind("txtSH", txtSH, "Value", "Scroll", "100"); ConfigHelper.Config.PropertyBind("CamTestReel_SH", txtSH, "Value", "Scroll", "100");
UpdateValue(); UpdateValue();
} }
[HandleProcessCorruptedStateExceptions] [HandleProcessCorruptedStateExceptions]
...@@ -76,7 +76,7 @@ namespace ImgCheckReel ...@@ -76,7 +76,7 @@ namespace ImgCheckReel
for (int i = 0; i < rois.Count; i++) for (int i = 0; i < rois.Count; i++)
{ {
rois[i].CoverCount = totalcover; // rois[i].CoverCount = totalcover;
double maskcout = 0; double maskcout = 0;
var roi = rois[i]; var roi = rois[i];
var rp = roi.RoiPath.Select(r => new Point(r.X / 2, r.Y / 2)).ToList(); var rp = roi.RoiPath.Select(r => new Point(r.X / 2, r.Y / 2)).ToList();
...@@ -116,7 +116,7 @@ namespace ImgCheckReel ...@@ -116,7 +116,7 @@ namespace ImgCheckReel
if (calc <= threshold) if (calc <= threshold)
{ {
hasReel = true; hasReel = true;
break; //break;
} }
} }
b.UnlockBits(bd); b.UnlockBits(bd);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!