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
0baf0bdc
Commit
0baf0bdc
authored
Nov 12, 2015
by
berak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AKAZE: check channels instead of type in detectAndCompute
add same CV_32F and CV_16U support for KAZE
parent
979f88f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
akaze.cpp
modules/features2d/src/akaze.cpp
+1
-1
kaze.cpp
modules/features2d/src/kaze.cpp
+9
-2
No files found.
modules/features2d/src/akaze.cpp
View file @
0baf0bdc
...
...
@@ -168,7 +168,7 @@ namespace cv
bool
useProvidedKeypoints
)
{
Mat
img
=
image
.
getMat
();
if
(
img
.
type
()
!=
CV_8UC
1
)
if
(
img
.
channels
()
>
1
)
cvtColor
(
image
,
img
,
COLOR_BGR2GRAY
);
Mat
img1_32
;
...
...
modules/features2d/src/kaze.cpp
View file @
0baf0bdc
...
...
@@ -111,11 +111,18 @@ namespace cv
bool
useProvidedKeypoints
)
{
cv
::
Mat
img
=
image
.
getMat
();
if
(
img
.
type
()
!=
CV_8UC
1
)
if
(
img
.
channels
()
>
1
)
cvtColor
(
image
,
img
,
COLOR_BGR2GRAY
);
Mat
img1_32
;
img
.
convertTo
(
img1_32
,
CV_32F
,
1.0
/
255.0
,
0
);
if
(
img
.
depth
()
==
CV_32F
)
img1_32
=
img
;
else
if
(
img
.
depth
()
==
CV_8U
)
img
.
convertTo
(
img1_32
,
CV_32F
,
1.0
/
255.0
,
0
);
else
if
(
img
.
depth
()
==
CV_16U
)
img
.
convertTo
(
img1_32
,
CV_32F
,
1.0
/
65535.0
,
0
);
CV_Assert
(
!
img1_32
.
empty
()
);
KAZEOptions
options
;
options
.
img_width
=
img
.
cols
;
...
...
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