Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Opencv
提交
01d3848f
O
Opencv
项目概览
Greenplum
/
Opencv
11 个月 前同步成功
通知
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,发现更多精彩内容 >>
提交
01d3848f
编写于
10月 16, 2014
作者:
V
Vadim Pisarevsky
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
all the tests now pass except for MSER
上级
162384a8
变更
13
展开全部
隐藏空白更改
内联
并排
Showing
13 changed file
with
730 addition
and
21 deletion
+730
-21
modules/core/include/opencv2/core.hpp
modules/core/include/opencv2/core.hpp
+3
-0
modules/core/src/algorithm.cpp
modules/core/src/algorithm.cpp
+3
-0
modules/features2d/include/opencv2/features2d.hpp
modules/features2d/include/opencv2/features2d.hpp
+3
-2
modules/features2d/perf/opencl/perf_fast.cpp
modules/features2d/perf/opencl/perf_fast.cpp
+1
-4
modules/features2d/perf/perf_fast.cpp
modules/features2d/perf/perf_fast.cpp
+1
-4
modules/features2d/src/brisk.cpp
modules/features2d/src/brisk.cpp
+1
-1
modules/features2d/src/fast.cpp
modules/features2d/src/fast.cpp
+24
-0
modules/features2d/src/mser.cpp
modules/features2d/src/mser.cpp
+3
-0
modules/features2d/test/test_descriptors_regression.cpp
modules/features2d/test/test_descriptors_regression.cpp
+1
-3
modules/features2d/test/test_keypoints.cpp
modules/features2d/test/test_keypoints.cpp
+683
-0
modules/features2d/test/test_matchers_algorithmic.cpp
modules/features2d/test/test_matchers_algorithmic.cpp
+2
-2
modules/features2d/test/test_rotation_and_scale_invariance.cpp
...es/features2d/test/test_rotation_and_scale_invariance.cpp
+2
-2
modules/stitching/src/matchers.cpp
modules/stitching/src/matchers.cpp
+3
-3
未找到文件。
modules/core/include/opencv2/core.hpp
浏览文件 @
01d3848f
...
...
@@ -874,6 +874,9 @@ public:
virtual
~
Algorithm
();
String
name
()
const
;
virtual
void
set
(
int
,
double
);
virtual
double
get
(
int
)
const
;
template
<
typename
_Tp
>
typename
ParamType
<
_Tp
>::
member_type
get
(
const
String
&
name
)
const
;
template
<
typename
_Tp
>
typename
ParamType
<
_Tp
>::
member_type
get
(
const
char
*
name
)
const
;
...
...
modules/core/src/algorithm.cpp
浏览文件 @
01d3848f
...
...
@@ -179,6 +179,9 @@ String Algorithm::name() const
return
info
()
->
name
();
}
void
Algorithm
::
set
(
int
,
double
)
{}
double
Algorithm
::
get
(
int
)
const
{
return
0.
;
}
void
Algorithm
::
set
(
const
String
&
parameter
,
int
value
)
{
info
()
->
set
(
this
,
parameter
.
c_str
(),
ParamType
<
int
>::
type
,
&
value
);
...
...
modules/features2d/include/opencv2/features2d.hpp
浏览文件 @
01d3848f
...
...
@@ -213,9 +213,10 @@ CV_EXPORTS void FAST( InputArray image, CV_OUT std::vector<KeyPoint>& keypoints,
class
CV_EXPORTS_W
FastFeatureDetector
:
public
Feature2D
{
public:
enum
Type
enum
{
TYPE_5_8
=
0
,
TYPE_7_12
=
1
,
TYPE_9_16
=
2
TYPE_5_8
=
0
,
TYPE_7_12
=
1
,
TYPE_9_16
=
2
,
THRESHOLD
=
10000
,
NONMAX_SUPPRESSION
=
10001
,
FAST_N
=
10002
,
};
CV_WRAP
static
Ptr
<
FastFeatureDetector
>
create
(
int
threshold
=
10
,
...
...
modules/features2d/perf/opencl/perf_fast.cpp
浏览文件 @
01d3848f
...
...
@@ -32,11 +32,8 @@ OCL_PERF_TEST_P(FASTFixture, FastDetect, testing::Combine(
mframe
.
copyTo
(
frame
);
declare
.
in
(
frame
);
Ptr
<
FeatureDetector
>
fd
=
Algorithm
::
create
<
FeatureDetector
>
(
"Feature2D.FAST"
);
Ptr
<
FeatureDetector
>
fd
=
FastFeatureDetector
::
create
(
20
,
true
,
type
);
ASSERT_FALSE
(
fd
.
empty
()
);
fd
->
set
(
"threshold"
,
20
);
fd
->
set
(
"nonmaxSuppression"
,
true
);
fd
->
set
(
"type"
,
type
);
vector
<
KeyPoint
>
points
;
OCL_TEST_CYCLE
()
fd
->
detect
(
frame
,
points
);
...
...
modules/features2d/perf/perf_fast.cpp
浏览文件 @
01d3848f
...
...
@@ -30,11 +30,8 @@ PERF_TEST_P(fast, detect, testing::Combine(
declare
.
in
(
frame
);
Ptr
<
FeatureDetector
>
fd
=
Algorithm
::
create
<
FeatureDetector
>
(
"Feature2D.FAST"
);
Ptr
<
FeatureDetector
>
fd
=
FastFeatureDetector
::
create
(
20
,
true
,
type
);
ASSERT_FALSE
(
fd
.
empty
()
);
fd
->
set
(
"threshold"
,
20
);
fd
->
set
(
"nonmaxSuppression"
,
true
);
fd
->
set
(
"type"
,
type
);
vector
<
KeyPoint
>
points
;
TEST_CYCLE
()
fd
->
detect
(
frame
,
points
);
...
...
modules/features2d/src/brisk.cpp
浏览文件 @
01d3848f
...
...
@@ -2099,7 +2099,7 @@ BriskLayer::BriskLayer(const BriskLayer& layer, int mode)
void
BriskLayer
::
getAgastPoints
(
int
threshold
,
std
::
vector
<
KeyPoint
>&
keypoints
)
{
fast_9_16_
=
FastFeatureDetector
::
create
(
threshold
);
fast_9_16_
->
set
(
FastFeatureDetector
::
THRESHOLD
,
threshold
);
fast_9_16_
->
detect
(
img_
,
keypoints
);
// also write scores
...
...
modules/features2d/src/fast.cpp
浏览文件 @
01d3848f
...
...
@@ -383,6 +383,30 @@ public:
KeyPointsFilter
::
runByPixelsMask
(
keypoints
,
mask
);
}
void
set
(
int
prop
,
double
value
)
{
if
(
prop
==
THRESHOLD
)
threshold
=
cvRound
(
value
);
else
if
(
prop
==
NONMAX_SUPPRESSION
)
nonmaxSuppression
=
value
!=
0
;
else
if
(
prop
==
FAST_N
)
type
=
cvRound
(
value
);
else
CV_Error
(
Error
::
StsBadArg
,
""
);
}
double
get
(
int
prop
)
const
{
if
(
prop
==
THRESHOLD
)
return
threshold
;
if
(
prop
==
NONMAX_SUPPRESSION
)
return
nonmaxSuppression
;
if
(
prop
==
FAST_N
)
return
type
;
CV_Error
(
Error
::
StsBadArg
,
""
);
return
0
;
}
int
threshold
;
bool
nonmaxSuppression
;
int
type
;
...
...
modules/features2d/src/mser.cpp
浏览文件 @
01d3848f
...
...
@@ -800,9 +800,12 @@ extractMSER_8uC3( const Mat& src, Mat& labels,
double
emean
=
0
;
Mat
dx
(
src
.
rows
,
src
.
cols
-
1
,
CV_32FC1
);
Mat
dy
(
src
.
rows
,
src
.
cols
,
CV_32FC1
);
Ne
=
preprocessMSER_8UC3
(
map
,
edge
,
emean
,
src
,
dx
,
dy
,
Ne
,
params
.
edgeBlurSize
);
emean
=
emean
/
(
double
)
Ne
;
std
::
sort
(
edge
,
edge
+
Ne
,
LessThanEdge
());
MSCREdge
*
edge_ub
=
edge
+
Ne
;
MSCREdge
*
edgeptr
=
edge
;
TempMSCR
*
mscrptr
=
mscr
;
...
...
modules/features2d/test/test_descriptors_regression.cpp
浏览文件 @
01d3848f
...
...
@@ -106,8 +106,6 @@ public:
~
CV_DescriptorExtractorTest
()
{
if
(
!
detector
.
empty
())
detector
.
release
();
}
protected:
virtual
void
createDescriptorExtractor
()
{}
...
...
@@ -333,7 +331,7 @@ TEST( Features2d_DescriptorExtractor_KAZE, regression )
{
CV_DescriptorExtractorTest
<
L2
<
float
>
>
test
(
"descriptor-kaze"
,
0.03
f
,
KAZE
::
create
(),
L2
<
float
>
()
);
L2
<
float
>
()
,
KAZE
::
create
()
);
test
.
safe_run
();
}
...
...
modules/features2d/test/test_keypoints.cpp
浏览文件 @
01d3848f
此差异已折叠。
点击以展开。
modules/features2d/test/test_matchers_algorithmic.cpp
浏览文件 @
01d3848f
...
...
@@ -533,13 +533,13 @@ void CV_DescriptorMatcherTest::run( int )
TEST
(
Features2d_DescriptorMatcher_BruteForce
,
regression
)
{
CV_DescriptorMatcherTest
test
(
"descriptor-matcher-brute-force"
,
DescriptorMatcher
::
create
(
"B
FMatcher
"
),
0.01
f
);
DescriptorMatcher
::
create
(
"B
ruteForce
"
),
0.01
f
);
test
.
safe_run
();
}
TEST
(
Features2d_DescriptorMatcher_FlannBased
,
regression
)
{
CV_DescriptorMatcherTest
test
(
"descriptor-matcher-flann-based"
,
DescriptorMatcher
::
create
(
"FlannBased
Matcher
"
),
0.04
f
);
DescriptorMatcher
::
create
(
"FlannBased"
),
0.04
f
);
test
.
safe_run
();
}
modules/features2d/test/test_rotation_and_scale_invariance.cpp
浏览文件 @
01d3848f
...
...
@@ -595,7 +595,7 @@ protected:
TEST
(
Features2d_RotationInvariance_Detector_BRISK
,
regression
)
{
DetectorRotationInvarianceTest
test
(
Algorithm
::
create
<
FeatureDetector
>
(
"Feature2D.BRISK"
),
DetectorRotationInvarianceTest
test
(
BRISK
::
create
(
),
0.32
f
,
0.76
f
);
test
.
safe_run
();
...
...
@@ -603,7 +603,7 @@ TEST(Features2d_RotationInvariance_Detector_BRISK, regression)
TEST
(
Features2d_RotationInvariance_Detector_ORB
,
regression
)
{
DetectorRotationInvarianceTest
test
(
Algorithm
::
create
<
FeatureDetector
>
(
"Feature2D.ORB"
),
DetectorRotationInvarianceTest
test
(
ORB
::
create
(
),
0.47
f
,
0.76
f
);
test
.
safe_run
();
...
...
modules/stitching/src/matchers.cpp
浏览文件 @
01d3848f
...
...
@@ -321,7 +321,7 @@ SurfFeaturesFinder::SurfFeaturesFinder(double hess_thresh, int num_octaves, int
{
if
(
num_octaves_descr
==
num_octaves
&&
num_layers_descr
==
num_layers
)
{
surf
=
Algorithm
::
create
<
Feature2D
>
(
"Feature2D.SURF"
);
surf
=
xfeatures2d
::
SURF
::
create
(
);
if
(
!
surf
)
CV_Error
(
Error
::
StsNotImplemented
,
"OpenCV was built without SURF support"
);
surf
->
set
(
"hessianThreshold"
,
hess_thresh
);
...
...
@@ -330,8 +330,8 @@ SurfFeaturesFinder::SurfFeaturesFinder(double hess_thresh, int num_octaves, int
}
else
{
detector_
=
Algorithm
::
create
<
FeatureDetector
>
(
"Feature2D.SURF"
);
extractor_
=
Algorithm
::
create
<
DescriptorExtractor
>
(
"Feature2D.SURF"
);
detector_
=
xfeatures2d
::
SURF
::
create
(
);
extractor_
=
xfeatures2d
::
SURF
::
create
(
);
if
(
!
detector_
||
!
extractor_
)
CV_Error
(
Error
::
StsNotImplemented
,
"OpenCV was built without SURF support"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录