Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张士柳
/
eyemLib
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 3779eb3d
由
张士柳
编写于
2021-09-18 14:11:59 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
无
1 个父辈
9ad8bd85
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
3 行删除
eyemLib-Sharp/EyemLib.cs
eyemLib-Sharp/EyemLib.cs
查看文件 @
3779eb3
...
@@ -516,6 +516,8 @@ namespace eyemLib_Sharp
...
@@ -516,6 +516,8 @@ namespace eyemLib_Sharp
#
region
滤波
#
region
滤波
[
DllImport
(
"eyemLib.dll"
,
CharSet
=
CharSet
.
None
,
CallingConvention
=
CallingConvention
.
Cdecl
)]
[
DllImport
(
"eyemLib.dll"
,
CharSet
=
CharSet
.
None
,
CallingConvention
=
CallingConvention
.
Cdecl
)]
private
static
extern
int
eyemShockFilter
(
EyemImage
tpImage
,
int
kSize
,
double
dSigma
,
double
dBlend
,
int
iIter
,
out
EyemImage
tpDstImg
);
private
static
extern
int
eyemShockFilter
(
EyemImage
tpImage
,
int
kSize
,
double
dSigma
,
double
dBlend
,
int
iIter
,
out
EyemImage
tpDstImg
);
[
DllImport
(
"eyemLib.dll"
,
CharSet
=
CharSet
.
None
,
CallingConvention
=
CallingConvention
.
Cdecl
)]
private
static
extern
int
eyemNonLocalMeansFilter
(
EyemImage
tpImage
,
int
iCMPSize
,
int
iSearchSize
,
double
dH
,
double
dSigma
);
#
endregion
#
endregion
#
region
2
值
blob
分析
#
region
2
值
blob
分析
...
@@ -1166,7 +1168,9 @@ namespace eyemLib_Sharp
...
@@ -1166,7 +1168,9 @@ namespace eyemLib_Sharp
//flag = eyemEdge1dRidgeDetection(image);
//flag = eyemEdge1dRidgeDetection(image);
flag
=
eyemShockFilter
(
image
,
9
,
1.5
,
0.5
,
10
,
out
tpDstImg
);
//flag = eyemShockFilter(image, 9, 1.5, 0.5, 10, out tpDstImg);
flag
=
eyemNonLocalMeansFilter
(
image
,
7
,
21
,
3.0
,
-
1
);
Bitmap
bitmap
=
eyemCvtToBitmap
(
tpDstImg
);
Bitmap
bitmap
=
eyemCvtToBitmap
(
tpDstImg
);
if
(
bitmap
!=
null
)
if
(
bitmap
!=
null
)
...
@@ -1404,9 +1408,9 @@ namespace eyemLib_Sharp
...
@@ -1404,9 +1408,9 @@ namespace eyemLib_Sharp
//如果对象供其他接口使用要先释放
//如果对象供其他接口使用要先释放
//eyemImageFree(ref tpDstImg);
//eyemImageFree(ref tpDstImg);
//"IP_SMALL_PARTS","IP_LARGE_PARTS","IP_LONG_PARTS","IP_LOWCONTRAST_PARTS"
//"IP_SMALL_PARTS","IP_LARGE_PARTS","IP_LONG_PARTS","IP_LOWCONTRAST_PARTS"
,IP_SQUARE_PARTS
//eyemCountObject(image, tpRoi, file.Replace(".png", ""), ipReelNum, out tpDstImg);
//eyemCountObject(image, tpRoi, file.Replace(".png", ""), ipReelNum, out tpDstImg);
//eyemCountObjectIrregularParts(image, tpRoi, file.Replace(".png", ""), "IP_S
QUARE
_PARTS", ipReelNum, out tpDstImg);
//eyemCountObjectIrregularParts(image, tpRoi, file.Replace(".png", ""), "IP_S
MALL
_PARTS", ipReelNum, out tpDstImg);
//eyemCountObjectE(image, tpRoi, file.Replace(".png", ""), ipReelNum, out tpDstImg);
//eyemCountObjectE(image, tpRoi, file.Replace(".png", ""), ipReelNum, out tpDstImg);
//eyemCountObjectIrregularPartsE(image, tpRoi, file.Replace(".png", ""), "D:\\模板文件\\" + "20210825095751-1.tpl", hModelID, ipReelNum, out tpDstImg);
//eyemCountObjectIrregularPartsE(image, tpRoi, file.Replace(".png", ""), "D:\\模板文件\\" + "20210825095751-1.tpl", hModelID, ipReelNum, out tpDstImg);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论