Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
8f9bcb77
Commit
8f9bcb77
authored
Jun 12, 2014
by
biagio montesano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Derivation from Feature2D completed. Warnings corrected.
parent
a0237c31
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
11 deletions
+19
-11
descriptor.hpp
...descriptor/include/opencv2/line_descriptor/descriptor.hpp
+16
-11
lines_extraction.cpp
modules/line_descriptor/samples/lines_extraction.cpp
+1
-0
BinaryDescriptor.cpp
modules/line_descriptor/src/BinaryDescriptor.cpp
+0
-0
precomp.hpp
modules/line_descriptor/src/precomp.hpp
+2
-0
No files found.
modules/line_descriptor/include/opencv2/line_descriptor/descriptor.hpp
View file @
8f9bcb77
...
...
@@ -74,11 +74,9 @@ namespace cv
/* number of pixels covered by the line */
unsigned
int
numOfPixels
;
};
class
CV_EXPORTS_W
BinaryDescriptor
:
public
Feature
Detector
class
CV_EXPORTS_W
BinaryDescriptor
:
public
Feature
2D
{
public
:
...
...
@@ -114,9 +112,14 @@ namespace cv
};
/* constructor */
CV_WRAP
BinaryDescriptor
(
const
BinaryDescriptor
::
Params
&
parameters
=
BinaryDescriptor
::
Params
());
/* constructors with smart pointers */
CV_EXPORTS
Ptr
<
BinaryDescriptor
>
createBinaryDescriptor
();
CV_EXPORTS
Ptr
<
BinaryDescriptor
>
createBinaryDescriptor
(
Params
parameters
);
/* read parameters from a FileNode object and store them (class function ) */
virtual
void
read
(
const
cv
::
FileNode
&
fn
);
...
...
@@ -133,10 +136,12 @@ namespace cv
std
::
vector
<
std
::
vector
<
KeyPoint
>
>&
keypoints
,
const
std
::
vector
<
Mat
>&
masks
=
std
::
vector
<
Mat
>
()
)
const
;
/* requires descriptors computation (only one image) */
CV_WRAP
void
compute
(
const
Mat
&
image
,
CV_OUT
CV_IN_OUT
std
::
vector
<
KeyPoint
>&
keypoints
,
CV_OUT
Mat
&
descriptors
)
const
;
/* requires descriptors computation (more than one image) */
void
compute
(
const
std
::
vector
<
Mat
>&
images
,
std
::
vector
<
std
::
vector
<
KeyPoint
>
>&
keypoints
,
std
::
vector
<
Mat
>&
descriptors
)
const
;
...
...
@@ -155,28 +160,28 @@ namespace cv
CV_WRAP_AS
(
detectAndCompute
)
virtual
void
operator
()(
InputArray
image
,
InputArray
mask
,
CV_OUT
std
::
vector
<
KeyPoint
>&
keypoints
,
OutputArray
descriptors
,
bool
useProvidedKeypoints
=
false
)
const
=
0
;
CV_OUT
std
::
vector
<
KeyPoint
>&
keypoints
,
OutputArray
descriptors
,
bool
useProvidedKeypoints
=
false
)
const
;
protected
:
virtual
void
detectImpl
(
const
Mat
&
image
,
std
::
vector
<
KeyPoint
>&
keypoints
,
const
Mat
&
mask
=
Mat
()
)
const
=
0
;
const
Mat
&
mask
=
Mat
()
)
const
;
virtual
void
computeImpl
(
const
Mat
&
image
,
std
::
vector
<
KeyPoint
>&
keypoints
,
Mat
&
descriptors
)
const
=
0
;
Mat
&
descriptors
)
const
;
AlgorithmInfo
*
info
()
const
;
private
:
/* conversion of an LBD descriptor to
the decimal equivalent of
its binary representation */
unsigned
char
binary
Test
(
float
*
f1
,
float
*
f2
);
/* conversion of an LBD descriptor to its binary representation */
unsigned
char
binary
Conversion
(
float
*
f1
,
float
*
f2
);
/* compute LBD descriptors */
int
computeLBD
_
(
ScaleLines
&
keyLines
);
int
computeLBD
(
ScaleLines
&
keyLines
);
/* compute Gaussian pyramid of input image */
void
computeGaussianPyramid
(
const
Mat
&
image
);
...
...
modules/line_descriptor/samples/lines_extraction.cpp
0 → 100644
View file @
8f9bcb77
modules/line_descriptor/src/BinaryDescriptor.cpp
View file @
8f9bcb77
This diff is collapsed.
Click to expand it.
modules/line_descriptor/src/precomp.hpp
View file @
8f9bcb77
...
...
@@ -55,5 +55,7 @@
#include <iostream>
#include <map>
#include <utility>
#include <string>
#include <typeinfo>
#endif
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