mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-03-31 05:46:35 +08:00
增加卡尺工具,修复了一些bug
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user