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
e5f12942
Commit
e5f12942
authored
Aug 14, 2017
by
Martin Seyferth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
brisk add detection threshold for custom sampling pattern
parent
87c27a07
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
features2d.hpp
modules/features2d/include/opencv2/features2d.hpp
+17
-0
brisk.cpp
modules/features2d/src/brisk.cpp
+23
-0
No files found.
modules/features2d/include/opencv2/features2d.hpp
View file @
e5f12942
...
...
@@ -250,6 +250,23 @@ public:
@param indexChange index remapping of the bits. */
CV_WRAP
static
Ptr
<
BRISK
>
create
(
const
std
::
vector
<
float
>
&
radiusList
,
const
std
::
vector
<
int
>
&
numberList
,
float
dMax
=
5.85
f
,
float
dMin
=
8.2
f
,
const
std
::
vector
<
int
>&
indexChange
=
std
::
vector
<
int
>
());
/** @brief The BRISK constructor for a custom pattern, detection threshold and octaves
@param thresh AGAST detection threshold score.
@param octaves detection octaves. Use 0 to do single scale.
@param radiusList defines the radii (in pixels) where the samples around a keypoint are taken (for
keypoint scale 1).
@param numberList defines the number of sampling points on the sampling circle. Must be the same
size as radiusList..
@param dMax threshold for the short pairings used for descriptor formation (in pixels for keypoint
scale 1).
@param dMin threshold for the long pairings used for orientation determination (in pixels for
keypoint scale 1).
@param indexChange index remapping of the bits. */
CV_WRAP
static
Ptr
<
BRISK
>
create
(
int
thresh
,
int
octaves
,
const
std
::
vector
<
float
>
&
radiusList
,
const
std
::
vector
<
int
>
&
numberList
,
float
dMax
=
5.85
f
,
float
dMin
=
8.2
f
,
const
std
::
vector
<
int
>&
indexChange
=
std
::
vector
<
int
>
());
};
/** @brief Class implementing the ORB (*oriented BRIEF*) keypoint detector and descriptor extractor
...
...
modules/features2d/src/brisk.cpp
View file @
e5f12942
...
...
@@ -59,6 +59,10 @@ public:
explicit
BRISK_Impl
(
const
std
::
vector
<
float
>
&
radiusList
,
const
std
::
vector
<
int
>
&
numberList
,
float
dMax
=
5.85
f
,
float
dMin
=
8.2
f
,
const
std
::
vector
<
int
>
indexChange
=
std
::
vector
<
int
>
());
explicit
BRISK_Impl
(
int
thresh
,
int
octaves
,
const
std
::
vector
<
float
>
&
radiusList
,
const
std
::
vector
<
int
>
&
numberList
,
float
dMax
=
5.85
f
,
float
dMin
=
8.2
f
,
const
std
::
vector
<
int
>
indexChange
=
std
::
vector
<
int
>
());
virtual
~
BRISK_Impl
();
int
descriptorSize
()
const
...
...
@@ -319,6 +323,18 @@ BRISK_Impl::BRISK_Impl(const std::vector<float> &radiusList,
octaves
=
3
;
}
BRISK_Impl
::
BRISK_Impl
(
int
thresh
,
int
octaves_in
,
const
std
::
vector
<
float
>
&
radiusList
,
const
std
::
vector
<
int
>
&
numberList
,
float
dMax
,
float
dMin
,
const
std
::
vector
<
int
>
indexChange
)
{
generateKernel
(
radiusList
,
numberList
,
dMax
,
dMin
,
indexChange
);
threshold
=
thresh
;
octaves
=
octaves_in
;
}
void
BRISK_Impl
::
generateKernel
(
const
std
::
vector
<
float
>
&
radiusList
,
const
std
::
vector
<
int
>
&
numberList
,
...
...
@@ -2318,4 +2334,11 @@ Ptr<BRISK> BRISK::create(const std::vector<float> &radiusList, const std::vector
return
makePtr
<
BRISK_Impl
>
(
radiusList
,
numberList
,
dMax
,
dMin
,
indexChange
);
}
Ptr
<
BRISK
>
BRISK
::
create
(
int
thresh
,
int
octaves
,
const
std
::
vector
<
float
>
&
radiusList
,
const
std
::
vector
<
int
>
&
numberList
,
float
dMax
,
float
dMin
,
const
std
::
vector
<
int
>&
indexChange
)
{
return
makePtr
<
BRISK_Impl
>
(
thresh
,
octaves
,
radiusList
,
numberList
,
dMax
,
dMin
,
indexChange
);
}
}
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