mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-04-01 06:36:38 +08:00
增加卡尺工具,修复了一些bug
This commit is contained in:
@@ -46,6 +46,10 @@
|
||||
<Compile Include="VisionToolList.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\CaliperTool\CaliperTool.csproj">
|
||||
<Project>{AABF8D49-FA00-4E25-9410-4A573D48DAB1}</Project>
|
||||
<Name>CaliperTool</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\CommonMethods\CommonHelper.csproj">
|
||||
<Project>{1C8D0DDC-2086-48A9-9586-F2B643E2FC54}</Project>
|
||||
<Name>CommonHelper</Name>
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
BIN
VisionJobFactory/bin/Debug/CaliperTool.dll
Normal file
BIN
VisionJobFactory/bin/Debug/CaliperTool.dll
Normal file
Binary file not shown.
BIN
VisionJobFactory/bin/Debug/CaliperTool.pdb
Normal file
BIN
VisionJobFactory/bin/Debug/CaliperTool.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user