Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
763954f8
Commit
763954f8
authored
Oct 16, 2014
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed xfeatures2d tests
parent
0cfd7953
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
stardetector.cpp
modules/xfeatures2d/src/stardetector.cpp
+5
-0
test_detectors.cpp
modules/xfeatures2d/test/test_detectors.cpp
+1
-1
test_features2d.cpp
modules/xfeatures2d/test/test_features2d.cpp
+2
-2
No files found.
modules/xfeatures2d/src/stardetector.cpp
View file @
763954f8
...
...
@@ -483,6 +483,11 @@ StarDetectorImpl::StarDetectorImpl(int _maxSize, int _responseThreshold,
void
StarDetectorImpl
::
detect
(
InputArray
_image
,
std
::
vector
<
KeyPoint
>&
keypoints
,
InputArray
_mask
)
{
Mat
image
=
_image
.
getMat
(),
mask
=
_mask
.
getMat
(),
grayImage
=
image
;
if
(
image
.
empty
()
)
{
keypoints
.
clear
();
return
;
}
if
(
image
.
channels
()
>
1
)
cvtColor
(
image
,
grayImage
,
COLOR_BGR2GRAY
);
Mat
responses
,
sizes
;
...
...
modules/xfeatures2d/test/test_detectors.cpp
View file @
763954f8
...
...
@@ -290,7 +290,7 @@ void CV_DetectorsTest::run( int /*start_from*/ )
if
(
exp
.
empty
())
return
;
if
(
!
testDetector
(
to_test
,
SURF
::
create
(
1536
+
512
+
512
,
2
),
exp
))
if
(
!
testDetector
(
to_test
,
SURF
::
create
(
1536
+
512
+
512
,
2
,
2
,
true
,
false
),
exp
))
return
;
LoadExpected
(
string
(
ts
->
get_data_path
())
+
"detectors/star.xml"
,
exp
);
...
...
modules/xfeatures2d/test/test_features2d.cpp
View file @
763954f8
...
...
@@ -1223,12 +1223,12 @@ protected:
TEST
(
Features2d_SIFT_using_mask
,
regression
)
{
FeatureDetectorUsingMaskTest
test
(
Algorithm
::
create
<
FeatureDetector
>
(
"Feature2D.SIFT"
));
FeatureDetectorUsingMaskTest
test
(
SIFT
::
create
(
));
test
.
safe_run
();
}
TEST
(
DISABLED_Features2d_SURF_using_mask
,
regression
)
{
FeatureDetectorUsingMaskTest
test
(
Algorithm
::
create
<
FeatureDetector
>
(
"Feature2D.SURF"
));
FeatureDetectorUsingMaskTest
test
(
SURF
::
create
(
));
test
.
safe_run
();
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment