mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-03-25 01:06:36 +08:00
1、解决因在debug目录下放置多余的dll导致反射时报错的问题
2、解决显示窗口滑动时,坐标及灰度值不实时更新的问题 3、解决模板匹配工具,模板图像不更新的问题 4、将各工具的生成位置改至主程序的debug目录下
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user