Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
d71f31b9
Commit
d71f31b9
authored
Nov 09, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1433 from Sahloul:freak_gray_img
parents
39af4822
be84634c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
freak.cpp
modules/xfeatures2d/src/freak.cpp
+7
-2
No files found.
modules/xfeatures2d/src/freak.cpp
View file @
d71f31b9
...
...
@@ -333,8 +333,13 @@ void FREAK_Impl::compute( InputArray _image, std::vector<KeyPoint>& keypoints, O
((
FREAK_Impl
*
)
this
)
->
buildPattern
();
// Convert to gray if not already
Mat
grayImage
=
image
;
CV_Assert
(
grayImage
.
channels
()
==
1
);
Mat
grayImage
;
if
(
image
.
channels
()
==
3
||
image
.
channels
()
==
4
)
cvtColor
(
image
,
grayImage
,
COLOR_BGR2GRAY
);
else
{
CV_Assert
(
image
.
channels
()
==
1
);
grayImage
=
image
;
}
// Use 32-bit integers if we won't overflow in the integral image
if
((
image
.
depth
()
==
CV_8U
||
image
.
depth
()
==
CV_8S
)
&&
...
...
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