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
0863960c
Commit
0863960c
authored
Jun 04, 2014
by
biagio montesano
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reinsertion of OctaveKeyLines
parent
d5eeb91d
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
5 deletions
+19
-5
LineStructure.hpp
...criptor/include/opencv2/line_descriptor/LineStructure.hpp
+8
-0
descriptor.hpp
...descriptor/include/opencv2/line_descriptor/descriptor.hpp
+11
-5
BinaryDescriptor.cpp
modules/line_descriptor/src/BinaryDescriptor.cpp
+0
-0
No files found.
modules/line_descriptor/include/opencv2/line_descriptor/LineStructure.hpp
View file @
0863960c
...
@@ -42,6 +42,14 @@ the use of this software, even if advised of the possibility of such damage.
...
@@ -42,6 +42,14 @@ the use of this software, even if advised of the possibility of such damage.
#include <vector>
#include <vector>
/* struct to represent lines extracted from an octave */
struct
OctaveLine
{
unsigned
int
octaveCount
;
//the octave which this line is detected
unsigned
int
lineIDInOctave
;
//the line ID in that octave image
unsigned
int
lineIDInScaleLineVec
;
//the line ID in Scale line vector
float
lineLength
;
//the length of line in original image scale
};
// A 2D line (normal equation parameters).
// A 2D line (normal equation parameters).
struct
SingleLine
struct
SingleLine
{
{
...
...
modules/line_descriptor/include/opencv2/line_descriptor/descriptor.hpp
View file @
0863960c
...
@@ -49,6 +49,7 @@
...
@@ -49,6 +49,7 @@
#include "LineStructure.hpp"
#include "LineStructure.hpp"
#include "opencv2/core.hpp"
#include "opencv2/core.hpp"
namespace
cv
namespace
cv
{
{
...
@@ -56,11 +57,10 @@ namespace cv
...
@@ -56,11 +57,10 @@ namespace cv
{
{
public
:
public
:
virtual
~
LineDescriptor
();
virtual
~
LineDescriptor
();
void
getLineBinaryDescriptor
(
std
::
vector
<
cv
::
Mat
>
&
oct_binaryDescMat
);
void
getLineBinaryDescriptor
s
(
cv
::
Mat
&
oct_binaryDescMat
);
protected
:
protected
:
virtual
void
getLineBinaryDescriptorImpl
(
std
::
vector
<
cv
::
Mat
>
&
oct_binaryDescMat
,
virtual
void
getLineBinaryDescriptorsImpl
(
cv
::
Mat
&
oct_binaryDescMat
);
ScaleLines
&
keyLines
);
};
};
...
@@ -102,11 +102,11 @@ namespace cv
...
@@ -102,11 +102,11 @@ namespace cv
virtual
void
read
(
const
cv
::
FileNode
&
fn
);
virtual
void
read
(
const
cv
::
FileNode
&
fn
);
virtual
void
write
(
cv
::
FileStorage
&
fs
)
const
;
virtual
void
write
(
cv
::
FileStorage
&
fs
)
const
;
void
getLineBinaryDescriptor
(
cv
::
Mat
&
oct_binaryDescMat
,
ScaleLines
&
keyLines
);
void
getLineBinaryDescriptor
s
(
cv
::
Mat
&
oct_binaryDescMat
);
protected
:
protected
:
virtual
void
getLineBinaryDescriptor
Impl
(
std
::
vector
<
cv
::
Mat
>
&
oct_binaryDescMat
,
ScaleLines
&
keyLines
);
virtual
void
getLineBinaryDescriptor
sImpl
(
cv
::
Mat
&
oct_binaryDescMat
);
AlgorithmInfo
*
info
()
const
;
AlgorithmInfo
*
info
()
const
;
Params
params
;
Params
params
;
...
@@ -115,6 +115,9 @@ namespace cv
...
@@ -115,6 +115,9 @@ namespace cv
private
:
private
:
unsigned
char
binaryTest
(
float
*
f1
,
float
*
f2
);
unsigned
char
binaryTest
(
float
*
f1
,
float
*
f2
);
int
ComputeLBD_
(
ScaleLines
&
keyLines
);
int
ComputeLBD_
(
ScaleLines
&
keyLines
);
int
OctaveKeyLines
(
std
::
vector
<
cv
::
Mat
>
&
octaveImages
,
ScaleLines
&
keyLines
);
void
getLineParameters
(
cv
::
Vec4i
&
line_extremes
,
cv
::
Vec3i
&
lineParams
);
float
getLineDirection
(
cv
::
Vec3i
&
lineParams
);
/* the local gaussian coefficient apply to the orthogonal line direction within each band */
/* the local gaussian coefficient apply to the orthogonal line direction within each band */
std
::
vector
<
float
>
gaussCoefL_
;
std
::
vector
<
float
>
gaussCoefL_
;
...
@@ -128,6 +131,9 @@ namespace cv
...
@@ -128,6 +131,9 @@ namespace cv
/* vectot to store sizes of octave images */
/* vectot to store sizes of octave images */
std
::
vector
<
cv
::
Size
>
images_sizes
;
std
::
vector
<
cv
::
Size
>
images_sizes
;
/* structure to store lines extracted from each octave image */
std
::
vector
<
std
::
vector
<
cv
::
Vec4i
>
>
extractedLines
;
};
};
}
}
...
...
modules/line_descriptor/src/BinaryDescriptor.cpp
View file @
0863960c
This diff is collapsed.
Click to expand it.
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