mirror of
https://github.com/eggplantlwj/VisionEdit.git
synced 2026-04-14 15:56:35 +08:00
1、增加单独Job的保存、添加和创建
2、每个Job单独绑定一个图像窗体 3、支持通过以job的方式外部调用
This commit is contained in:
@@ -276,17 +276,25 @@ namespace PMAlignTool
|
||||
maxScale = FormPMAlignTool.Instance.nud_ScaleRange.Value;
|
||||
}
|
||||
|
||||
public int CreateModelTemplate()
|
||||
public int CreateModelTemplate(bool setInputModelRegion, HObject inputModelRegion)
|
||||
{
|
||||
HObject template;
|
||||
oldTrainImage = inputImage;
|
||||
if (FormPMAlignTool.Instance.templateModelListAdd.Count == 0)
|
||||
// 判断是否从外部输入模板
|
||||
if(setInputModelRegion)
|
||||
{
|
||||
LoggerClass.WriteLog($"{toolName}未划定模板建立区域", MsgLevel.Exception);
|
||||
isCreateModel = false;
|
||||
return -1;
|
||||
templateRegion = inputModelRegion;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (FormPMAlignTool.Instance.templateModelListAdd.Count == 0)
|
||||
{
|
||||
LoggerClass.WriteLog($"{toolName}未划定模板建立区域", MsgLevel.Exception);
|
||||
isCreateModel = false;
|
||||
return -1;
|
||||
}
|
||||
CreateModelRegion();
|
||||
}
|
||||
CreateModelRegion();
|
||||
HObject createModelImg;
|
||||
HOperatorSet.GenEmptyObj(out createModelImg);
|
||||
createModelImg = ProcessImage(inputImage);
|
||||
|
||||
Reference in New Issue
Block a user