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
d511e620
Commit
d511e620
authored
Oct 01, 2010
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed detector evaluation test
parent
65a04703
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
evaluation.cpp
modules/features2d/src/evaluation.cpp
+1
-1
adetectordescriptor_evaluation.cpp
tests/cv/src/adetectordescriptor_evaluation.cpp
+10
-8
No files found.
modules/features2d/src/evaluation.cpp
View file @
d511e620
...
...
@@ -371,7 +371,7 @@ void cv::evaluateFeatureDetector( const Mat& img1, const Mat& img2, const Mat& H
if
(
keypoints1
->
empty
()
)
fdetector
->
detect
(
img1
,
*
keypoints1
);
if
(
keypoints2
->
empty
()
)
fdetector
->
detect
(
img
1
,
*
keypoints2
);
fdetector
->
detect
(
img
2
,
*
keypoints2
);
calculateRepeatability
(
img1
,
img2
,
H1to2
,
*
keypoints1
,
*
keypoints2
,
repeatability
,
correspCount
);
}
...
...
tests/cv/src/adetectordescriptor_evaluation.cpp
View file @
d511e620
...
...
@@ -712,9 +712,11 @@ void DetectorQualityTest::runDatasetTest (const vector<Mat> &imgs, const vector<
{
progress
=
update_progress
(
progress
,
di
*
TEST_CASE_COUNT
+
ci
,
progressCount
,
0
);
vector
<
KeyPoint
>
keypoints2
;
float
rep
;
evaluateFeatureDetector
(
imgs
[
0
],
imgs
[
ci
+
1
],
Hs
[
ci
],
&
keypoints1
,
&
keypoints2
,
calcQuality
[
di
][
ci
].
repeatability
,
calcQuality
[
di
][
ci
].
correspondenceCount
,
rep
,
calcQuality
[
di
][
ci
].
correspondenceCount
,
detector
);
calcQuality
[
di
][
ci
].
repeatability
=
100.
f
*
rep
;
writeKeypoints
(
keypontsFS
,
keypoints2
,
ci
+
1
);
}
}
...
...
@@ -748,13 +750,13 @@ int DetectorQualityTest::processResults( int datasetIdx, int caseIdx )
return
res
;
}
//
DetectorQualityTest fastDetectorQuality = DetectorQualityTest( "FAST", "quality-detector-fast" );
//
DetectorQualityTest gfttDetectorQuality = DetectorQualityTest( "GFTT", "quality-detector-gftt" );
//
DetectorQualityTest harrisDetectorQuality = DetectorQualityTest( "HARRIS", "quality-detector-harris" );
//
DetectorQualityTest mserDetectorQuality = DetectorQualityTest( "MSER", "quality-detector-mser" );
//
DetectorQualityTest starDetectorQuality = DetectorQualityTest( "STAR", "quality-detector-star" );
//
DetectorQualityTest siftDetectorQuality = DetectorQualityTest( "SIFT", "quality-detector-sift" );
//
DetectorQualityTest surfDetectorQuality = DetectorQualityTest( "SURF", "quality-detector-surf" );
DetectorQualityTest
fastDetectorQuality
=
DetectorQualityTest
(
"FAST"
,
"quality-detector-fast"
);
DetectorQualityTest
gfttDetectorQuality
=
DetectorQualityTest
(
"GFTT"
,
"quality-detector-gftt"
);
DetectorQualityTest
harrisDetectorQuality
=
DetectorQualityTest
(
"HARRIS"
,
"quality-detector-harris"
);
DetectorQualityTest
mserDetectorQuality
=
DetectorQualityTest
(
"MSER"
,
"quality-detector-mser"
);
DetectorQualityTest
starDetectorQuality
=
DetectorQualityTest
(
"STAR"
,
"quality-detector-star"
);
DetectorQualityTest
siftDetectorQuality
=
DetectorQualityTest
(
"SIFT"
,
"quality-detector-sift"
);
DetectorQualityTest
surfDetectorQuality
=
DetectorQualityTest
(
"SURF"
,
"quality-detector-surf"
);
/****************************************************************************************\
* Descriptors evaluation *
...
...
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