Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张士柳
/
eyemLib
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
图表
网络
创建新的问题
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 0361ce5a
由
张士柳
编写于
2021-07-26 17:28:22 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
无
1 个父辈
9c0967be
全部展开
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
16 行增加
和
12 行删除
eyemLib-Sharp/EyemLib.cs
eyemLib/eyemFit.cpp
eyemLib/eyemLib.h
eyemLib-Sharp/EyemLib.cs
查看文件 @
0361ce5
此文件的差异被折叠,
点击展开。
eyemLib/eyemFit.cpp
查看文件 @
0361ce5
此文件的差异被折叠,
点击展开。
eyemLib/eyemLib.h
查看文件 @
0361ce5
...
@@ -102,10 +102,6 @@
...
@@ -102,10 +102,6 @@
typedef
intptr_t
IntPtr
;
typedef
intptr_t
IntPtr
;
#endif
#endif
//#ifndef LPSTR
//typedef char* LPSTR;
//#endif
// 图像边界处理
// 图像边界处理
#ifndef __EYEM_BORDER
#ifndef __EYEM_BORDER
...
@@ -423,6 +419,15 @@ enum
...
@@ -423,6 +419,15 @@ enum
EYEM_DIST_ATLWORTH
=
10
/**< w = 1 * (abs(r)<1) c=2.975*/
EYEM_DIST_ATLWORTH
=
10
/**< w = 1 * (abs(r)<1) c=2.975*/
};
};
typedef
struct
{
double
a00
;
// a00
double
a01
;
// a01
double
b00
;
// b00
double
a10
;
// a10
double
a11
;
// a11
double
b10
;
// b10
}
EyemRigidMatrix
;
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
#endif
#endif
...
@@ -430,15 +435,12 @@ extern "C" {
...
@@ -430,15 +435,12 @@ extern "C" {
// 函数接口
// 函数接口
EXPORTS
int
eyemFitLine
(
int
iPtnNum
,
EyemOcsDXY
*
taPoint
,
int
numToIgnore
,
EyemOcsDABC
&
tpLine
);
EXPORTS
int
eyemFitLine
(
int
iPtnNum
,
EyemOcsDXY
*
taPoint
,
int
numToIgnore
,
EyemOcsDABC
&
tpLine
);
EXPORTS
int
eyemRobustFitLine
(
int
iPtnNum
,
EyemOcsDXY
*
taPoint
,
int
iCalcMode
,
double
dRobustCoef
,
EyemOcsDABC
&
tpLine
);
EXPORTS
int
eyemRobustFitLine
(
int
iPtnNum
,
EyemOcsDXY
*
taPoint
,
int
iCalcMode
,
double
dRobustCoef
,
EyemOcsDABC
&
tpLine
);
EXPORTS
int
eyemFitLineRANSAC
(
int
iPtnNum
,
EyemOcsDXY
*
taPoint
,
double
dClippingFactor
,
EyemOcsDABC
&
tpLine
);
EXPORTS
int
eyemFitCircle
(
int
iPtnNum
,
EyemOcsDXY
*
taPoint
,
int
numToIgnore
,
double
&
dRMS
,
EyemOcsDXYR
&
tpCircle
);
EXPORTS
int
eyemFitCircle
(
int
iPtnNum
,
EyemOcsDXY
*
taPoint
,
int
numToIgnore
,
double
&
dRMS
,
EyemOcsDXYR
&
tpCircle
);
EXPORTS
int
eyemRobustFitCircle
(
int
iPtnNum
,
EyemOcsDXY
*
taPoint
,
int
iCalcMode
,
double
dRobustCoef
,
EyemOcsDXYR
&
tpCircle
);
EXPORTS
int
eyemRobustFitCircle
(
int
iPtnNum
,
EyemOcsDXY
*
taPoint
,
int
iCalcMode
,
double
dRobustCoef
,
EyemOcsDXYR
&
tpCircle
);
EXPORTS
int
eyemFitPlane
(
int
iPtnNum
,
EyemOcsDXYZ
*
taPoint
,
int
iCalcMode
,
double
&
dRMS
,
EyemOcsDABCD
&
tpPlane
);
EXPORTS
int
eyemFitRTMatrix
(
int
iPtnNum
,
EyemOcsDXY
*
taPointA
,
EyemOcsDXY
*
taPointB
,
EyemRigidMatrix
&
dpResult
);
EXPORTS
int
eyemFitEllipse
(
int
,
EyemOcsDXY
[],
int
,
double
,
EyemOcsDXYLSQ
*
);
EXPORTS
int
eyemRobustFitPlane
(
int
iPtnNum
,
EyemOcsDXYZ
*
taPoint
,
int
iCalcMode
,
double
dRobustCoef
,
EyemOcsDABCD
&
tpPlane
);
EXPORTS
int
eyemFitEllipseC
(
int
,
EyemOcsDXY
[],
int
,
double
,
double
[]);
EXPORTS
int
eyemRobustFitEllipse
(
int
iPtnNum
,
EyemOcsDXY
*
taPoint
,
int
iCalcMode
,
double
dRobustCoef
,
EyemOcsDXYLSQ
&
tpEllipse
);
EXPORTS
int
eyemFitConics
(
int
,
EyemOcsDXY
[],
int
,
double
,
double
[]);
EXPORTS
int
eyemFitParabola
(
int
,
EyemOcsDXY
[],
int
,
double
,
EyemOcsDABC
*
);
EXPORTS
int
eyemFitEllipsoid
(
int
,
EyemOcsDXYZ
[],
int
,
double
,
EyemOcsDCRUVW
*
);
EXPORTS
int
eyemFitCone
(
int
,
EyemOcsDXYZ
[],
int
,
double
,
double
[]);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
@@ -833,7 +835,6 @@ typedef struct {
...
@@ -833,7 +835,6 @@ typedef struct {
char
*
lpszName
;
// 名称
char
*
lpszName
;
// 名称
}
EyemModelID
;
}
EyemModelID
;
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
#endif
#endif
...
@@ -859,6 +860,9 @@ extern "C" {
...
@@ -859,6 +860,9 @@ extern "C" {
EXPORTS
int
eyemMarkerTracing
(
EyemImage
tpImage
,
double
dThreshold
,
EyemOcsFXYR
*
tpCircle
,
bool
bHighAccuracy
=
false
);
EXPORTS
int
eyemMarkerTracing
(
EyemImage
tpImage
,
double
dThreshold
,
EyemOcsFXYR
*
tpCircle
,
bool
bHighAccuracy
=
false
);
EXPORTS
int
eyemMulFuncTool
(
EyemImage
tpImage
,
EyemRect
tpRoi
,
const
char
*
funcName
,
double
dThreshold
,
int
iNumToIgnore
,
EyemOcsFXYR
*
tpCircle
,
EyemImage
*
tpDstImg
);
EXPORTS
int
eyemMulFuncTool
(
EyemImage
tpImage
,
EyemRect
tpRoi
,
const
char
*
funcName
,
double
dThreshold
,
int
iNumToIgnore
,
EyemOcsFXYR
*
tpCircle
,
EyemImage
*
tpDstImg
);
EXPORTS
int
eyemLibImpl
(
EyemImage
tpImage
,
EyemImage
*
tpDstImg
);
EXPORTS
int
eyemLibImpl
(
EyemImage
tpImage
,
EyemImage
*
tpDstImg
);
EXPORTS
int
eyemDrawLine
(
EyemImage
tpImage
,
EyemOcsDABC
tpLine
);
EXPORTS
int
eyemDrawCircle
(
EyemImage
tpImage
,
EyemOcsDXYR
tpCircle
);
EXPORTS
int
eyemDrawRectangle
(
EyemImage
tpImag
,
EyemRect
tpRect
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论