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
db262fa7
Commit
db262fa7
authored
Aug 16, 2018
by
Hamdi Sahloul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid multi-inheritance in the cuda::features2d classes
parent
94758c18
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
cudafeatures2d.hpp
modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp
+6
-5
fast.cpp
modules/cudafeatures2d/src/fast.cpp
+3
-3
orb.cpp
modules/cudafeatures2d/src/orb.cpp
+2
-2
No files found.
modules/cudafeatures2d/include/opencv2/cudafeatures2d.hpp
View file @
db262fa7
...
...
@@ -374,7 +374,7 @@ public:
/** @brief Abstract base class for CUDA asynchronous 2D image feature detectors and descriptor extractors.
*/
class
CV_EXPORTS
Feature2DAsync
class
CV_EXPORTS
Feature2DAsync
:
public
cv
::
Feature2D
{
public
:
virtual
~
Feature2DAsync
();
...
...
@@ -423,7 +423,7 @@ public:
/** @brief Wrapping class for feature detection using the FAST method.
*/
class
CV_EXPORTS
FastFeatureDetector
:
public
cv
::
FastFeatureDetector
,
public
Feature2DAsync
class
CV_EXPORTS
FastFeatureDetector
:
public
Feature2DAsync
{
public
:
enum
...
...
@@ -437,8 +437,9 @@ public:
static
Ptr
<
FastFeatureDetector
>
create
(
int
threshold
=
10
,
bool
nonmaxSuppression
=
true
,
int
type
=
FastFeatureDetector
::
TYPE_9_16
,
int
type
=
cv
::
FastFeatureDetector
::
TYPE_9_16
,
int
max_npoints
=
5000
);
virtual
void
setThreshold
(
int
threshold
)
=
0
;
virtual
void
setMaxNumPoints
(
int
max_npoints
)
=
0
;
virtual
int
getMaxNumPoints
()
const
=
0
;
...
...
@@ -452,7 +453,7 @@ public:
*
* @sa cv::ORB
*/
class
CV_EXPORTS
ORB
:
public
cv
::
ORB
,
public
Feature2DAsync
class
CV_EXPORTS
ORB
:
public
Feature2DAsync
{
public
:
enum
...
...
@@ -472,7 +473,7 @@ public:
int
edgeThreshold
=
31
,
int
firstLevel
=
0
,
int
WTA_K
=
2
,
int
scoreType
=
ORB
::
HARRIS_SCORE
,
int
scoreType
=
cv
::
ORB
::
HARRIS_SCORE
,
int
patchSize
=
31
,
int
fastThreshold
=
20
,
bool
blurForDescriptor
=
false
);
...
...
modules/cudafeatures2d/src/fast.cpp
View file @
db262fa7
...
...
@@ -81,8 +81,8 @@ namespace
virtual
void
setMaxNumPoints
(
int
max_npoints
)
{
max_npoints_
=
max_npoints
;
}
virtual
int
getMaxNumPoints
()
const
{
return
max_npoints_
;
}
virtual
void
setType
(
int
type
)
{
CV_Assert
(
type
==
TYPE_9_16
);
}
virtual
int
getType
()
const
{
return
TYPE_9_16
;
}
virtual
void
setType
(
int
type
)
{
CV_Assert
(
type
==
cv
::
FastFeatureDetector
::
TYPE_9_16
);
}
virtual
int
getType
()
const
{
return
cv
::
FastFeatureDetector
::
TYPE_9_16
;
}
private
:
int
threshold_
;
...
...
@@ -207,7 +207,7 @@ namespace
Ptr
<
cv
::
cuda
::
FastFeatureDetector
>
cv
::
cuda
::
FastFeatureDetector
::
create
(
int
threshold
,
bool
nonmaxSuppression
,
int
type
,
int
max_npoints
)
{
CV_Assert
(
type
==
TYPE_9_16
);
CV_Assert
(
type
==
cv
::
FastFeatureDetector
::
TYPE_9_16
);
return
makePtr
<
FAST_Impl
>
(
threshold
,
nonmaxSuppression
,
max_npoints
);
}
...
...
modules/cudafeatures2d/src/orb.cpp
View file @
db262fa7
...
...
@@ -354,7 +354,7 @@ namespace
virtual
void
convert
(
InputArray
_gpu_keypoints
,
std
::
vector
<
KeyPoint
>&
keypoints
);
virtual
int
descriptorSize
()
const
{
return
kBytes
;
}
virtual
int
descriptorSize
()
const
{
return
cv
::
ORB
::
kBytes
;
}
virtual
int
descriptorType
()
const
{
return
CV_8U
;
}
virtual
int
defaultNorm
()
const
{
return
NORM_HAMMING
;
}
...
...
@@ -764,7 +764,7 @@ namespace
const
int
n_features
=
static_cast
<
int
>
(
n_features_per_level_
[
level
]);
if
(
scoreType_
==
ORB
::
HARRIS_SCORE
)
if
(
scoreType_
==
cv
::
ORB
::
HARRIS_SCORE
)
{
// Keep more points than necessary as FAST does not give amazing corners
cull
(
keyPointsPyr_
[
level
],
keyPointsCount_
[
level
],
2
*
n_features
,
stream
);
...
...
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