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
c46b510f
Commit
c46b510f
authored
May 11, 2011
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
restored 2 methods (for backward compatibility)
parent
af28d19b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
12 deletions
+36
-12
features2d.hpp
modules/features2d/include/opencv2/features2d/features2d.hpp
+25
-12
descriptors.cpp
modules/features2d/src/descriptors.cpp
+6
-0
detectors.cpp
modules/features2d/src/detectors.cpp
+5
-0
No files found.
modules/features2d/include/opencv2/features2d/features2d.hpp
View file @
c46b510f
...
...
@@ -1248,6 +1248,13 @@ public:
protected
:
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
=
0
;
/*
* Remove keypoints that are not in the mask.
* Helper function, useful when wrapping a library call for keypoint detection that
* does not support a mask argument.
*/
static
void
removeInvalidPoints
(
const
Mat
&
mask
,
vector
<
KeyPoint
>&
keypoints
);
};
class
CV_EXPORTS
FastFeatureDetector
:
public
FeatureDetector
...
...
@@ -1258,7 +1265,7 @@ public:
virtual
void
write
(
FileStorage
&
fs
)
const
;
protected
:
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
int
threshold
;
bool
nonmaxSuppression
;
...
...
@@ -1291,9 +1298,9 @@ public:
virtual
void
write
(
FileStorage
&
fs
)
const
;
protected
:
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
Params
params
;
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
Params
params
;
};
class
CV_EXPORTS
MserFeatureDetector
:
public
FeatureDetector
...
...
@@ -1306,7 +1313,7 @@ public:
virtual
void
write
(
FileStorage
&
fs
)
const
;
protected
:
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
MSER
mser
;
};
...
...
@@ -1321,7 +1328,7 @@ public:
virtual
void
write
(
FileStorage
&
fs
)
const
;
protected
:
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
StarDetector
star
;
};
...
...
@@ -1340,7 +1347,7 @@ public:
virtual
void
write
(
FileStorage
&
fs
)
const
;
protected
:
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
SIFT
sift
;
};
...
...
@@ -1353,7 +1360,7 @@ public:
virtual
void
write
(
FileStorage
&
fs
)
const
;
protected
:
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
SURF
surf
;
};
...
...
@@ -1425,9 +1432,9 @@ public:
// TODO implement read/write
protected
:
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
Params
params
;
Params
params
;
};
/*
...
...
@@ -1451,7 +1458,7 @@ public:
virtual
bool
empty
()
const
;
protected
:
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
Ptr
<
FeatureDetector
>
detector
;
int
maxTotalKeypoints
;
...
...
@@ -1472,7 +1479,7 @@ public:
virtual
bool
empty
()
const
;
protected
:
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
virtual
void
detectImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
;
Ptr
<
FeatureDetector
>
detector
;
int
levels
;
...
...
@@ -1655,6 +1662,12 @@ public:
protected
:
virtual
void
computeImpl
(
const
Mat
&
image
,
vector
<
KeyPoint
>&
keypoints
,
Mat
&
descriptors
)
const
=
0
;
/*
* Remove keypoints within borderPixels of an image edge.
*/
static
void
removeBorderKeypoints
(
vector
<
KeyPoint
>&
keypoints
,
Size
imageSize
,
int
borderSize
);
};
/*
...
...
modules/features2d/src/descriptors.cpp
View file @
c46b510f
...
...
@@ -89,6 +89,12 @@ bool DescriptorExtractor::empty() const
return
false
;
}
void
DescriptorExtractor
::
removeBorderKeypoints
(
vector
<
KeyPoint
>&
keypoints
,
Size
imageSize
,
int
borderSize
)
{
KeyPointsFilter
::
runByImageBorder
(
keypoints
,
imageSize
,
borderSize
);
}
Ptr
<
DescriptorExtractor
>
DescriptorExtractor
::
create
(
const
string
&
descriptorExtractorType
)
{
DescriptorExtractor
*
de
=
0
;
...
...
modules/features2d/src/detectors.cpp
View file @
c46b510f
...
...
@@ -82,6 +82,11 @@ bool FeatureDetector::empty() const
return
false
;
}
void
FeatureDetector
::
removeInvalidPoints
(
const
Mat
&
mask
,
vector
<
KeyPoint
>&
keypoints
)
{
KeyPointsFilter
::
runByPixelsMask
(
keypoints
,
mask
);
}
Ptr
<
FeatureDetector
>
FeatureDetector
::
create
(
const
string
&
detectorType
)
{
FeatureDetector
*
fd
=
0
;
...
...
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