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
ff8a7b80
Commit
ff8a7b80
authored
Jan 07, 2018
by
Hamdi Sahloul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LUCID - Support RGBA
parent
01dbe00c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
lucid.cpp
modules/xfeatures2d/src/lucid.cpp
+9
-4
No files found.
modules/xfeatures2d/src/lucid.cpp
View file @
ff8a7b80
...
...
@@ -100,10 +100,15 @@ namespace cv {
// gliese581h suggested filling a cv::Mat with descriptors to enable BFmatcher compatibility
// speed-ups and enhancements by gliese581h
void
LUCIDImpl
::
compute
(
InputArray
_src
,
std
::
vector
<
KeyPoint
>
&
keypoints
,
OutputArray
_desc
)
{
cv
::
Mat
src_input
=
_src
.
getMat
();
if
(
src_input
.
empty
())
return
;
CV_Assert
(
src_input
.
depth
()
==
CV_8U
&&
src_input
.
channels
()
==
3
);
if
(
_src
.
empty
())
return
;
CV_Assert
(
_src
.
depth
()
==
CV_8U
);
cv
::
Mat
src_input
;
if
(
_src
.
channels
()
==
4
)
cvtColor
(
_src
,
src_input
,
COLOR_BGRA2BGR
);
else
{
CV_Assert
(
_src
.
channels
()
==
3
);
src_input
=
_src
.
getMat
();
}
Mat_
<
Vec3b
>
src
;
...
...
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