增加卡尺工具,修复了一些bug

This commit is contained in:
liu.wenjie
2019-08-13 13:57:51 +08:00
committed by liu.wenjie
parent 4dbab27caf
commit ca7c7ec644
132 changed files with 1315 additions and 259 deletions

View File

@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CaliperTool;
using CommonMethods;
using FindLineTool;
using HalconTool;
@@ -67,6 +68,35 @@ namespace VisionJobFactory
}
}
[VisionToolAttribute(ToolType.Caliper)]
public class CaliperInterface : IToolInfo
{
ToolIO inputImage = new ToolIO("InputImage", null, DataType.Image);
ToolIO inputCenterRow = new ToolIO("inputCenterRow", null, DataType.IntValue);
ToolIO inputCenterColumn = new ToolIO("inputCenterColumn", null, DataType.IntValue);
ToolIO inputPhi = new ToolIO("inputPhi", null, DataType.IntValue);
ToolIO outputCenterRow = new ToolIO("outputCenterRow", null, DataType.IntValue);
ToolIO outputCenterColumn = new ToolIO("outputCenterColumn", null, DataType.IntValue);
public CaliperInterface(string toolName)
{
enable = true;
toolType = ToolType.Caliper;
this.toolName = toolName;
tool = new Caliper();
FormToolName = "CaliperTool.FormCaliper";
FormTool = null;
toolInput = new List<ToolIO>() { inputImage, inputCenterRow, inputCenterColumn, inputPhi };
toolOutput = new List<ToolIO>() { outputCenterRow, outputCenterColumn };
}
/// <summary>
/// 只获取选择工具的描述信息
/// </summary>
public CaliperInterface()
{
toolDescription = "卡尺工具";
}
}
[VisionToolAttribute(ToolType.BlobAnalyse)]
public class BlobAnalyseToolInterface : IToolInfo
{