Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
a685be3e
O
Opencv
项目概览
Greenplum
/
Opencv
大约 1 年 前同步成功
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
Opencv
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a685be3e
编写于
5月 06, 2011
作者:
I
Ilya Lysenkov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Added extra argument for BlobDetector in findCirclesGrid
上级
9f29506d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
16 addition
and
13 deletion
+16
-13
modules/calib3d/include/opencv2/calib3d/calib3d.hpp
modules/calib3d/include/opencv2/calib3d/calib3d.hpp
+5
-3
modules/calib3d/src/calibinit.cpp
modules/calib3d/src/calibinit.cpp
+3
-10
modules/python/src2/opencv_extra_api.hpp
modules/python/src2/opencv_extra_api.hpp
+8
-0
未找到文件。
modules/calib3d/include/opencv2/calib3d/calib3d.hpp
浏览文件 @
a685be3e
...
...
@@ -44,6 +44,7 @@
#define __OPENCV_CALIB3D_HPP__
#include "opencv2/core/core.hpp"
#include "opencv2/features2d/features2d.hpp"
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -527,11 +528,12 @@ CV_EXPORTS_W void drawChessboardCorners( InputOutputArray image, Size patternSiz
const
InputArray
&
corners
,
bool
patternWasFound
);
enum
{
CALIB_CB_SYMMETRIC_GRID
=
1
,
CALIB_CB_ASYMMETRIC_GRID
=
2
,
CALIB_CB_CLUSTERING
=
4
,
CALIB_CB_WHITE_CIRCLES
=
8
};
CALIB_CB_CLUSTERING
=
4
};
//! finds circles' grid pattern of the specified size in the image
CV_EXPORTS_W
bool
findCirclesGrid
(
const
InputArray
&
image
,
Size
patternSize
,
OutputArray
centers
,
int
flags
=
CALIB_CB_SYMMETRIC_GRID
);
CV_EXPORTS
bool
findCirclesGrid
(
const
InputArray
&
image
,
Size
patternSize
,
OutputArray
centers
,
int
flags
=
CALIB_CB_SYMMETRIC_GRID
,
const
Ptr
<
FeatureDetector
>
&
blobDetector
=
new
SimpleBlobDetector
());
enum
{
...
...
modules/calib3d/src/calibinit.cpp
浏览文件 @
a685be3e
...
...
@@ -1927,7 +1927,7 @@ void cv::drawChessboardCorners( InputOutputArray _image, Size patternSize,
}
bool
cv
::
findCirclesGrid
(
const
InputArray
&
_image
,
Size
patternSize
,
OutputArray
_centers
,
int
flags
)
OutputArray
_centers
,
int
flags
,
const
Ptr
<
FeatureDetector
>
&
blobDetector
)
{
bool
isAsymmetricGrid
=
(
flags
&
CALIB_CB_ASYMMETRIC_GRID
);
bool
isSymmetricGrid
=
(
flags
&
CALIB_CB_SYMMETRIC_GRID
);
...
...
@@ -1935,16 +1935,9 @@ bool cv::findCirclesGrid( const InputArray& _image, Size patternSize,
Mat
image
=
_image
.
getMat
();
vector
<
Point2f
>
centers
;
SimpleBlobDetector
::
Params
params
;
if
(
flags
&
CALIB_CB_WHITE_CIRCLES
)
{
params
.
filterByColor
=
true
;
params
.
blobColor
=
255
;
}
Ptr
<
SimpleBlobDetector
>
detector
=
new
SimpleBlobDetector
(
params
);
//Ptr<FeatureDetector> detector = new MserFeatureDetector();
vector
<
KeyPoint
>
keypoints
;
d
etector
->
detect
(
image
,
keypoints
);
blobD
etector
->
detect
(
image
,
keypoints
);
vector
<
Point2f
>
points
;
for
(
size_t
i
=
0
;
i
<
keypoints
.
size
();
i
++
)
{
...
...
modules/python/src2/opencv_extra_api.hpp
浏览文件 @
a685be3e
...
...
@@ -406,6 +406,14 @@ CV_WRAP static inline void convertPointsHomogeneous( const Mat& src, CV_OUT Mat&
cvConvertPointsHomogeneous
(
&
_src
,
&
_dst
);
}
//! finds circles' grid pattern of the specified size in the image
CV_WRAP
static
inline
void
findCirclesGridDefault
(
const
InputArray
&
image
,
Size
patternSize
,
OutputArray
centers
,
int
flags
=
CALIB_CB_SYMMETRIC_GRID
)
{
findCirclesGrid
(
image
,
patternSize
,
centers
,
flags
);
}
/*
//! initializes camera matrix from a few 3D points and the corresponding projections.
CV_WRAP static inline Mat initCameraMatrix2D( const vector<Mat>& objectPoints,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录