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
58c4d5f4
Commit
58c4d5f4
authored
Feb 04, 2013
by
Andrey Kamaev
Committed by
OpenCV Buildbot
Feb 04, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #424 from asmaloney:additional-checks
parents
fc4a2244
c8cad085
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
evaluation.cpp
modules/features2d/src/evaluation.cpp
+6
-4
No files found.
modules/features2d/src/evaluation.cpp
View file @
58c4d5f4
...
...
@@ -241,7 +241,6 @@ static void filterEllipticKeyPointsByImageSize( vector<EllipticKeyPoint>& keypoi
struct
IntersectAreaCounter
{
IntersectAreaCounter
()
:
bua
(
0
),
bna
(
0
)
{}
IntersectAreaCounter
(
float
_dr
,
int
_minx
,
int
_miny
,
int
_maxy
,
const
Point2f
&
_diff
,
...
...
@@ -257,6 +256,9 @@ struct IntersectAreaCounter
void
operator
()(
const
BlockedRange
&
range
)
{
CV_Assert
(
miny
<
maxy
);
CV_Assert
(
dr
>
FLT_EPSILON
);
int
temp_bua
=
bua
,
temp_bna
=
bna
;
for
(
int
i
=
range
.
begin
();
i
!=
range
.
end
();
i
++
)
{
...
...
@@ -461,7 +463,7 @@ void cv::evaluateFeatureDetector( const Mat& img1, const Mat& img2, const Mat& H
keypoints2
=
_keypoints2
!=
0
?
_keypoints2
:
&
buf2
;
if
(
(
keypoints1
->
empty
()
||
keypoints2
->
empty
())
&&
fdetector
.
empty
()
)
CV_Error
(
CV_StsBadArg
,
"fdetector must
be no
empty when keypoints1 or keypoints2 is empty"
);
CV_Error
(
CV_StsBadArg
,
"fdetector must
not be
empty when keypoints1 or keypoints2 is empty"
);
if
(
keypoints1
->
empty
()
)
fdetector
->
detect
(
img1
,
*
keypoints1
);
...
...
@@ -572,10 +574,10 @@ void cv::evaluateGenericDescriptorMatcher( const Mat& img1, const Mat& img2, con
correctMatches1to2Mask
=
_correctMatches1to2Mask
!=
0
?
_correctMatches1to2Mask
:
&
buf2
;
if
(
keypoints1
.
empty
()
)
CV_Error
(
CV_StsBadArg
,
"keypoints1 must
be no
empty"
);
CV_Error
(
CV_StsBadArg
,
"keypoints1 must
not be
empty"
);
if
(
matches1to2
->
empty
()
&&
dmatcher
.
empty
()
)
CV_Error
(
CV_StsBadArg
,
"dmatch must
be no
empty when matches1to2 is empty"
);
CV_Error
(
CV_StsBadArg
,
"dmatch must
not be
empty when matches1to2 is empty"
);
bool
computeKeypoints2ByPrj
=
keypoints2
.
empty
();
if
(
computeKeypoints2ByPrj
)
...
...
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