1、解决因在debug目录下放置多余的dll导致反射时报错的问题

2、解决显示窗口滑动时,坐标及灰度值不实时更新的问题
3、解决模板匹配工具,模板图像不更新的问题
4、将各工具的生成位置改至主程序的debug目录下
This commit is contained in:
liu.wenjie
2022-10-26 15:55:48 +08:00
parent 900ea68f69
commit a5b6142bad
30 changed files with 1697 additions and 1600 deletions

View File

@@ -77,11 +77,11 @@ namespace ViewROI
this.grayValueLable.BackColor = System.Drawing.Color.Transparent;
this.grayValueLable.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.grayValueLable.IsScaled = false;
this.grayValueLable.Location = new System.Drawing.Point(3, 430);
this.grayValueLable.Location = new System.Drawing.Point(3, 432);
this.grayValueLable.MinimumSize = new System.Drawing.Size(1, 1);
this.grayValueLable.Name = "grayValueLable";
this.grayValueLable.Padding = new System.Windows.Forms.Padding(28, 0, 0, 0);
this.grayValueLable.Size = new System.Drawing.Size(260, 26);
this.grayValueLable.Size = new System.Drawing.Size(260, 24);
this.grayValueLable.Symbol = 61483;
this.grayValueLable.TabIndex = 4;
this.grayValueLable.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;

View File

@@ -7,6 +7,7 @@ using System.Linq;
using System.Text;
using System.Windows.Forms;
using HalconDotNet;
using System.Diagnostics;
namespace ViewROI
{
@@ -80,16 +81,15 @@ namespace ViewROI
{
try
{
int button_state;
double positionX, positionY;
string str_value;
string str_position;
bool _isXOut = true, _isYOut = true;
HTuple channel_count;
HOperatorSet.CountChannels(hv_Image, out channel_count);
SmartWindow.HalconWindow.GetMpositionSubPix(out positionY, out positionX, out button_state);
//SmartWindow.HalconWindow.GetMpositionSubPix(out positionY, out positionX, out button_state);
positionY = e.Y;
positionX = e.X;
str_position = String.Format("RC: {0:0},{1:0}", positionY, positionX);
_isXOut = (positionX < 0 || positionX >= hv_Width);

View File

@@ -50,7 +50,7 @@
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<OutputPath>..\VisionEdit\bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>