Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
de6a934f
Commit
de6a934f
authored
Aug 13, 2013
by
Roman Donchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Boring changes - nonfree.
parent
345bc633
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
test_features2d.cpp
modules/nonfree/test/test_features2d.cpp
+4
-4
test_keypoints.cpp
modules/nonfree/test/test_keypoints.cpp
+1
-1
test_rotation_and_scale_invariance.cpp
modules/nonfree/test/test_rotation_and_scale_invariance.cpp
+6
-6
No files found.
modules/nonfree/test/test_features2d.cpp
View file @
de6a934f
...
@@ -231,7 +231,7 @@ void CV_FeatureDetectorTest::regressionTest()
...
@@ -231,7 +231,7 @@ void CV_FeatureDetectorTest::regressionTest()
void
CV_FeatureDetectorTest
::
run
(
int
/*start_from*/
)
void
CV_FeatureDetectorTest
::
run
(
int
/*start_from*/
)
{
{
if
(
fdetector
.
empty
()
)
if
(
!
fdetector
)
{
{
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Feature detector is empty.
\n
"
);
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Feature detector is empty.
\n
"
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_INVALID_TEST_DATA
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_INVALID_TEST_DATA
);
...
@@ -464,7 +464,7 @@ protected:
...
@@ -464,7 +464,7 @@ protected:
void
run
(
int
)
void
run
(
int
)
{
{
createDescriptorExtractor
();
createDescriptorExtractor
();
if
(
dextractor
.
empty
()
)
if
(
!
dextractor
)
{
{
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Descriptor extractor is empty.
\n
"
);
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Descriptor extractor is empty.
\n
"
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_INVALID_TEST_DATA
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_INVALID_TEST_DATA
);
...
@@ -1101,7 +1101,7 @@ protected:
...
@@ -1101,7 +1101,7 @@ protected:
void
run
(
int
)
void
run
(
int
)
{
{
Ptr
<
Feature2D
>
f
=
Algorithm
::
create
<
Feature2D
>
(
"Feature2D."
+
fname
);
Ptr
<
Feature2D
>
f
=
Algorithm
::
create
<
Feature2D
>
(
"Feature2D."
+
fname
);
if
(
f
.
empty
()
)
if
(
!
f
)
return
;
return
;
string
path
=
string
(
ts
->
get_data_path
())
+
"detectors_descriptors_evaluation/planar/"
;
string
path
=
string
(
ts
->
get_data_path
())
+
"detectors_descriptors_evaluation/planar/"
;
string
imgname1
=
path
+
"box.png"
;
string
imgname1
=
path
+
"box.png"
;
...
@@ -1156,7 +1156,7 @@ public:
...
@@ -1156,7 +1156,7 @@ public:
FeatureDetectorUsingMaskTest
(
const
Ptr
<
FeatureDetector
>&
featureDetector
)
:
FeatureDetectorUsingMaskTest
(
const
Ptr
<
FeatureDetector
>&
featureDetector
)
:
featureDetector_
(
featureDetector
)
featureDetector_
(
featureDetector
)
{
{
CV_Assert
(
!
featureDetector_
.
empty
()
);
CV_Assert
(
featureDetector_
);
}
}
protected
:
protected
:
...
...
modules/nonfree/test/test_keypoints.cpp
View file @
de6a934f
...
@@ -62,7 +62,7 @@ protected:
...
@@ -62,7 +62,7 @@ protected:
virtual
void
run
(
int
)
virtual
void
run
(
int
)
{
{
cv
::
initModule_features2d
();
cv
::
initModule_features2d
();
CV_Assert
(
!
detector
.
empty
()
);
CV_Assert
(
detector
);
string
imgFilename
=
string
(
ts
->
get_data_path
())
+
FEATURES2D_DIR
+
"/"
+
IMAGE_FILENAME
;
string
imgFilename
=
string
(
ts
->
get_data_path
())
+
FEATURES2D_DIR
+
"/"
+
IMAGE_FILENAME
;
// Read the test image.
// Read the test image.
...
...
modules/nonfree/test/test_rotation_and_scale_invariance.cpp
View file @
de6a934f
...
@@ -210,7 +210,7 @@ public:
...
@@ -210,7 +210,7 @@ public:
minKeyPointMatchesRatio
(
_minKeyPointMatchesRatio
),
minKeyPointMatchesRatio
(
_minKeyPointMatchesRatio
),
minAngleInliersRatio
(
_minAngleInliersRatio
)
minAngleInliersRatio
(
_minAngleInliersRatio
)
{
{
CV_Assert
(
!
featureDetector
.
empty
()
);
CV_Assert
(
featureDetector
);
}
}
protected
:
protected
:
...
@@ -323,8 +323,8 @@ public:
...
@@ -323,8 +323,8 @@ public:
normType
(
_normType
),
normType
(
_normType
),
minDescInliersRatio
(
_minDescInliersRatio
)
minDescInliersRatio
(
_minDescInliersRatio
)
{
{
CV_Assert
(
!
featureDetector
.
empty
()
);
CV_Assert
(
featureDetector
);
CV_Assert
(
!
descriptorExtractor
.
empty
()
);
CV_Assert
(
descriptorExtractor
);
}
}
protected
:
protected
:
...
@@ -410,7 +410,7 @@ public:
...
@@ -410,7 +410,7 @@ public:
minKeyPointMatchesRatio
(
_minKeyPointMatchesRatio
),
minKeyPointMatchesRatio
(
_minKeyPointMatchesRatio
),
minScaleInliersRatio
(
_minScaleInliersRatio
)
minScaleInliersRatio
(
_minScaleInliersRatio
)
{
{
CV_Assert
(
!
featureDetector
.
empty
()
);
CV_Assert
(
featureDetector
);
}
}
protected
:
protected
:
...
@@ -530,8 +530,8 @@ public:
...
@@ -530,8 +530,8 @@ public:
normType
(
_normType
),
normType
(
_normType
),
minDescInliersRatio
(
_minDescInliersRatio
)
minDescInliersRatio
(
_minDescInliersRatio
)
{
{
CV_Assert
(
!
featureDetector
.
empty
()
);
CV_Assert
(
featureDetector
);
CV_Assert
(
!
descriptorExtractor
.
empty
()
);
CV_Assert
(
descriptorExtractor
);
}
}
protected
:
protected
:
...
...
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