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
a134e068
Commit
a134e068
authored
Apr 28, 2014
by
Ievgen Khvedchenia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wrong checking of returned descriptor type
parent
c1bf4532
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
akaze.cpp
modules/features2d/src/akaze.cpp
+3
-2
kaze.cpp
modules/features2d/src/kaze.cpp
+3
-2
No files found.
modules/features2d/src/akaze.cpp
View file @
a134e068
...
...
@@ -151,7 +151,7 @@ namespace cv
impl
.
Compute_Descriptors
(
keypoints
,
desc
);
CV_Assert
((
!
desc
.
rows
||
desc
.
cols
==
descriptorSize
()));
CV_Assert
((
!
desc
.
rows
||
(
desc
.
type
()
&
descriptorType
())));
CV_Assert
((
!
desc
.
rows
||
(
desc
.
type
()
==
descriptorType
())));
}
void
AKAZE
::
detectImpl
(
InputArray
image
,
std
::
vector
<
KeyPoint
>&
keypoints
,
InputArray
mask
)
const
...
...
@@ -197,6 +197,6 @@ namespace cv
impl
.
Compute_Descriptors
(
keypoints
,
desc
);
CV_Assert
((
!
desc
.
rows
||
desc
.
cols
==
descriptorSize
()));
CV_Assert
((
!
desc
.
rows
||
(
desc
.
type
()
&
descriptorType
())));
CV_Assert
((
!
desc
.
rows
||
(
desc
.
type
()
==
descriptorType
())));
}
}
\ No newline at end of file
modules/features2d/src/kaze.cpp
View file @
a134e068
...
...
@@ -120,7 +120,7 @@ namespace cv
impl
.
Feature_Description
(
keypoints
,
desc
);
CV_Assert
((
!
desc
.
rows
||
desc
.
cols
==
descriptorSize
()));
CV_Assert
((
!
desc
.
rows
||
(
desc
.
type
()
&
descriptorType
())));
CV_Assert
((
!
desc
.
rows
||
(
desc
.
type
()
==
descriptorType
())));
}
void
KAZE
::
detectImpl
(
InputArray
image
,
std
::
vector
<
KeyPoint
>&
keypoints
,
InputArray
mask
)
const
...
...
@@ -168,6 +168,6 @@ namespace cv
impl
.
Feature_Description
(
keypoints
,
desc
);
CV_Assert
((
!
desc
.
rows
||
desc
.
cols
==
descriptorSize
()));
CV_Assert
((
!
desc
.
rows
||
(
desc
.
type
()
&
descriptorType
())));
CV_Assert
((
!
desc
.
rows
||
(
desc
.
type
()
==
descriptorType
())));
}
}
\ No newline at end of file
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