Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
刘韬
/
CarerayImage
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c9cecc48
由
刘韬
编写于
2024-02-04 09:34:47 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
添加 loadModeleMem
1 个父辈
d35469d2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
1 行删除
CarerayImage/XrayImage.cs
CarerayImage/eyemLib.cs
CarerayImage/XrayImage.cs
查看文件 @
c9cecc4
...
@@ -58,7 +58,7 @@ namespace Asa
...
@@ -58,7 +58,7 @@ namespace Asa
/// 算法名称对索引应序号
/// 算法名称对索引应序号
/// </summary>
/// </summary>
public
static
Dictionary
<
string
,
int
>
AlgoIndex
=
new
Dictionary
<
string
,
int
>();
public
static
Dictionary
<
string
,
int
>
AlgoIndex
=
new
Dictionary
<
string
,
int
>();
static
string
[]
sOptions
=
{
"IP_DEFAULT_PARTS"
,
"IP_SMALL_PARTS"
,
"IP_LARGE_PARTS"
,
"IP_LONG_PARTS"
,
"IP_SQUARE_PARTS"
,
""
,
"IP_DYNAMIC_SP1"
,
"IP_DYNAMIC_SP2"
};
static
string
[]
sOptions
=
{
"IP_DEFAULT_PARTS"
,
"IP_SMALL_PARTS"
,
"IP_LARGE_PARTS"
,
"IP_LONG_PARTS"
,
"IP_SQUARE_PARTS"
,
""
,
"IP_DYNAMIC_SP1"
,
"IP_DYNAMIC_SP2"
,
"IP_Template_PARTS"
};
/// <summary>
/// <summary>
/// 返回算法索引序列
/// 返回算法索引序列
/// </summary>
/// </summary>
...
@@ -468,6 +468,11 @@ namespace Asa
...
@@ -468,6 +468,11 @@ namespace Asa
//测试移除模板
//测试移除模板
eyemRemoveModelByName
(
hModelIDs
,
file
);
eyemRemoveModelByName
(
hModelIDs
,
file
);
}
}
public
static
void
LoadTemplateModel
(
int
index
,
string
file
)
{
//测试移除模板
loadModeleMem
(
index
,
file
,
hModelIDs
);
}
public
static
Bitmap
tplToBitmap
(
string
tplfile
,
out
double
MatchDeg
)
public
static
Bitmap
tplToBitmap
(
string
tplfile
,
out
double
MatchDeg
)
{
{
...
...
CarerayImage/eyemLib.cs
查看文件 @
c9cecc4
...
@@ -90,6 +90,9 @@ namespace Asa
...
@@ -90,6 +90,9 @@ namespace Asa
//通过名称移除模板
//通过名称移除模板
[
DllImport
(
"eyemLib.dll"
,
CharSet
=
CharSet
.
None
,
CallingConvention
=
CallingConvention
.
Cdecl
)]
[
DllImport
(
"eyemLib.dll"
,
CharSet
=
CharSet
.
None
,
CallingConvention
=
CallingConvention
.
Cdecl
)]
internal
static
extern
int
eyemRemoveModelByName
(
IntPtr
hModelID
,
string
ccTplName
);
internal
static
extern
int
eyemRemoveModelByName
(
IntPtr
hModelID
,
string
ccTplName
);
//将模版载入多盘点料的位置
[
DllImport
(
"eyemLib.dll"
,
CharSet
=
CharSet
.
None
,
CallingConvention
=
CallingConvention
.
Cdecl
)]
internal
static
extern
int
loadModeleMem
(
int
index
,
string
ccTplName
,
IntPtr
hModelID
);
/// <summary>
/// <summary>
/// 结束之前的算法计算
/// 结束之前的算法计算
/// </summary>
/// </summary>
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论