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
fa8839bb
Commit
fa8839bb
authored
Dec 12, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #888 from catree:lucid
parents
46f3b4d6
4820eff5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
xfeatures2d.hpp
modules/xfeatures2d/include/opencv2/xfeatures2d.hpp
+3
-1
lucid.cpp
modules/xfeatures2d/src/lucid.cpp
+4
-2
No files found.
modules/xfeatures2d/include/opencv2/xfeatures2d.hpp
View file @
fa8839bb
...
...
@@ -132,6 +132,8 @@ public:
An image descriptor that can be computed very fast, while being
about as robust as, for example, SURF or BRIEF.
@note It requires a color image as input.
*/
class
CV_EXPORTS_W
LUCID
:
public
Feature2D
{
...
...
@@ -140,7 +142,7 @@ public:
* @param lucid_kernel kernel for descriptor construction, where 1=3x3, 2=5x5, 3=7x7 and so forth
* @param blur_kernel kernel for blurring image prior to descriptor construction, where 1=3x3, 2=5x5, 3=7x7 and so forth
*/
CV_WRAP
static
Ptr
<
LUCID
>
create
(
const
int
lucid_kernel
,
const
int
blur_kernel
);
CV_WRAP
static
Ptr
<
LUCID
>
create
(
const
int
lucid_kernel
=
1
,
const
int
blur_kernel
=
2
);
};
...
...
modules/xfeatures2d/src/lucid.cpp
View file @
fa8839bb
...
...
@@ -100,12 +100,14 @@ 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
)
{
if
(
_src
.
getMat
().
empty
())
cv
::
Mat
src_input
=
_src
.
getMat
();
if
(
src_input
.
empty
())
return
;
CV_Assert
(
src_input
.
depth
()
==
CV_8U
&&
src_input
.
channels
()
==
3
);
Mat_
<
Vec3b
>
src
;
blur
(
_src
.
getMat
()
,
src
,
cv
::
Size
(
b_kernel
,
b_kernel
));
blur
(
src_input
,
src
,
cv
::
Size
(
b_kernel
,
b_kernel
));
int
x
,
y
,
j
,
d
,
p
,
m
=
(
l_kernel
*
2
+
1
)
*
(
l_kernel
*
2
+
1
)
*
3
,
width
=
src
.
cols
,
height
=
src
.
rows
,
r
,
c
;
...
...
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