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
c6e43c38
Commit
c6e43c38
authored
Nov 23, 2010
by
Maria Dimashova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated documentation on features2d; minor features2d changes
parent
562a3bd5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
13 deletions
+15
-13
features2d_common_detection_description.tex
doc/features2d_common_detection_description.tex
+0
-0
features2d.hpp
modules/features2d/include/opencv2/features2d/features2d.hpp
+13
-12
descriptors.cpp
modules/features2d/src/descriptors.cpp
+1
-0
matchers.cpp
modules/features2d/src/matchers.cpp
+0
-0
matching_to_many_images.cpp
samples/cpp/matching_to_many_images.cpp
+1
-1
No files found.
doc/features2d_common_detection_description.tex
View file @
c6e43c38
This diff is collapsed.
Click to expand it.
modules/features2d/include/opencv2/features2d/features2d.hpp
View file @
c6e43c38
...
...
@@ -1448,9 +1448,9 @@ protected:
int
levels
;
};
/*
***************************************************************************************\
* Dynamic Feature Detectors *
\***************************************************************************************
*/
/*
* Dynamic Feature Detectors
*/
/** \brief an adaptively adjusting detector that iteratively detects until the desired number
* of features are detected.
* Beware that this is not thread safe - as the adjustment of parameters breaks the const
...
...
@@ -1473,9 +1473,9 @@ public:
max_features
),
adjuster_
(
a
)
{
}
protected
:
virtual
void
detectImpl
(
const
cv
::
Mat
&
image
,
std
::
vector
<
cv
::
KeyPoint
>&
keypoints
,
const
cv
::
Mat
&
mask
=
cv
::
Mat
())
const
{
virtual
void
detectImpl
(
const
cv
::
Mat
&
image
,
std
::
vector
<
cv
::
KeyPoint
>&
keypoints
,
const
cv
::
Mat
&
mask
=
cv
::
Mat
())
const
{
//for oscillation testing
bool
down
=
false
;
bool
up
=
false
;
...
...
@@ -1630,7 +1630,7 @@ public:
* images Image collection.
* keypoints Input keypoints collection. keypoints[i] is keypoints detected in images[i].
* Keypoints for which a descriptor cannot be computed are removed.
* descriptors Descriptor collection. descriptors[i]
is descriptors computed for
keypoints[i].
* descriptors Descriptor collection. descriptors[i]
are descriptors computed for set
keypoints[i].
*/
void
compute
(
const
vector
<
Mat
>&
images
,
vector
<
vector
<
KeyPoint
>
>&
keypoints
,
vector
<
Mat
>&
descriptors
)
const
;
...
...
@@ -1788,7 +1788,8 @@ public:
static
const
int
PATCH_SIZE
=
48
;
static
const
int
KERNEL_SIZE
=
9
;
BriefDescriptorExtractor
(
int
bytes
=
32
);
// bytes is a length of descriptor in bytes. It can be equal 16, 32 or 64 bytes.
BriefDescriptorExtractor
(
int
bytes
=
32
);
virtual
int
descriptorSize
()
const
;
virtual
int
descriptorType
()
const
;
...
...
@@ -1893,7 +1894,7 @@ struct CV_EXPORTS HammingLUT
/// @todo Variable-length version, maybe default size=0 and specialize
/// @todo Need to choose C/SSE4 at runtime, but amortize this at matcher level for efficiency...
struct
Hamming
struct
CV_EXPORTS
Hamming
{
typedef
unsigned
char
ValueType
;
typedef
int
ResultType
;
...
...
@@ -1936,7 +1937,7 @@ struct CV_EXPORTS DMatch
float
distance
;
// less is better
bool
operator
<
(
const
DMatch
&
m
)
const
bool
operator
<
(
const
DMatch
&
m
)
const
{
return
distance
<
m
.
distance
;
}
...
...
@@ -2370,10 +2371,10 @@ public:
* trainKeypoints Keypoints from the train image
*/
// Classify keypoints from query image under one train image.
v
irtual
v
oid
classify
(
const
Mat
&
queryImage
,
vector
<
KeyPoint
>&
queryKeypoints
,
void
classify
(
const
Mat
&
queryImage
,
vector
<
KeyPoint
>&
queryKeypoints
,
const
Mat
&
trainImage
,
vector
<
KeyPoint
>&
trainKeypoints
)
const
;
// Classify keypoints from query image under train image collection.
v
irtual
v
oid
classify
(
const
Mat
&
queryImage
,
vector
<
KeyPoint
>&
queryKeypoints
);
void
classify
(
const
Mat
&
queryImage
,
vector
<
KeyPoint
>&
queryKeypoints
);
/*
* Group of methods to match keypoints from image pair.
...
...
modules/features2d/src/descriptors.cpp
View file @
c6e43c38
...
...
@@ -84,6 +84,7 @@ void DescriptorExtractor::compute( const Mat& image, vector<KeyPoint>& keypoints
void
DescriptorExtractor
::
compute
(
const
vector
<
Mat
>&
imageCollection
,
vector
<
vector
<
KeyPoint
>
>&
pointCollection
,
vector
<
Mat
>&
descCollection
)
const
{
CV_Assert
(
imageCollection
.
size
()
==
pointCollection
.
size
()
);
descCollection
.
resize
(
imageCollection
.
size
()
);
for
(
size_t
i
=
0
;
i
<
imageCollection
.
size
();
i
++
)
compute
(
imageCollection
[
i
],
pointCollection
[
i
],
descCollection
[
i
]
);
...
...
modules/features2d/src/matchers.cpp
View file @
c6e43c38
This diff is collapsed.
Click to expand it.
samples/cpp/matching_to_many_images.cpp
View file @
c6e43c38
...
...
@@ -69,7 +69,7 @@ bool createDetectorDescriptorMatcher( const string& detectorType, const string&
bool
isCreated
=
!
(
featureDetector
.
empty
()
||
descriptorExtractor
.
empty
()
||
descriptorMatcher
.
empty
()
);
if
(
!
isCreated
)
cout
<<
"Can not create feature detector or descriptor ex
s
tractor or descriptor matcher of given types."
<<
endl
<<
">"
<<
endl
;
cout
<<
"Can not create feature detector or descriptor extractor or descriptor matcher of given types."
<<
endl
<<
">"
<<
endl
;
return
isCreated
;
}
...
...
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