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
27c8f8a1
Commit
27c8f8a1
authored
Oct 17, 2016
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7443 from Tytan:akaze
parents
18327aed
9b4cf896
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
0 deletions
+42
-0
matchers.hpp
...s/stitching/include/opencv2/stitching/detail/matchers.hpp
+21
-0
matchers.cpp
modules/stitching/src/matchers.cpp
+21
-0
No files found.
modules/stitching/include/opencv2/stitching/detail/matchers.hpp
View file @
27c8f8a1
...
...
@@ -131,6 +131,27 @@ private:
Size
grid_size
;
};
/** @brief AKAZE features finder. :
@sa detail::FeaturesFinder, AKAZE
*/
class
CV_EXPORTS
AKAZEFeaturesFinder
:
public
detail
::
FeaturesFinder
{
public
:
AKAZEFeaturesFinder
(
int
descriptor_type
=
AKAZE
::
DESCRIPTOR_MLDB
,
int
descriptor_size
=
0
,
int
descriptor_channels
=
3
,
float
threshold
=
0.001
f
,
int
nOctaves
=
4
,
int
nOctaveLayers
=
4
,
int
diffusivity
=
KAZE
::
DIFF_PM_G2
);
private
:
void
find
(
InputArray
image
,
detail
::
ImageFeatures
&
features
);
Ptr
<
AKAZE
>
akaze
;
};
#ifdef HAVE_OPENCV_XFEATURES2D
class
CV_EXPORTS
SurfFeaturesFinderGpu
:
public
FeaturesFinder
...
...
modules/stitching/src/matchers.cpp
View file @
27c8f8a1
...
...
@@ -462,6 +462,27 @@ void OrbFeaturesFinder::find(InputArray image, ImageFeatures &features)
}
}
AKAZEFeaturesFinder
::
AKAZEFeaturesFinder
(
int
descriptor_type
,
int
descriptor_size
,
int
descriptor_channels
,
float
threshold
,
int
nOctaves
,
int
nOctaveLayers
,
int
diffusivity
)
{
akaze
=
AKAZE
::
create
(
descriptor_type
,
descriptor_size
,
descriptor_channels
,
threshold
,
nOctaves
,
nOctaveLayers
,
diffusivity
);
}
void
AKAZEFeaturesFinder
::
find
(
InputArray
image
,
detail
::
ImageFeatures
&
features
)
{
CV_Assert
((
image
.
type
()
==
CV_8UC3
)
||
(
image
.
type
()
==
CV_8UC1
));
Mat
descriptors
;
UMat
uimage
=
image
.
getUMat
();
akaze
->
detectAndCompute
(
uimage
,
UMat
(),
features
.
keypoints
,
descriptors
);
features
.
descriptors
=
descriptors
.
getUMat
(
ACCESS_READ
);
}
#ifdef HAVE_OPENCV_XFEATURES2D
SurfFeaturesFinderGpu
::
SurfFeaturesFinderGpu
(
double
hess_thresh
,
int
num_octaves
,
int
num_layers
,
int
num_octaves_descr
,
int
num_layers_descr
)
...
...
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