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
5f4cda50
Commit
5f4cda50
authored
Apr 03, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #136 from Dikay900/fix_line_descriptor_module
line_descriptor module fix vs2013 build
parents
bcb5c6d7
361dff4e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
binary_descriptor.cpp
modules/line_descriptor/src/binary_descriptor.cpp
+5
-5
No files found.
modules/line_descriptor/src/binary_descriptor.cpp
View file @
5f4cda50
...
...
@@ -756,7 +756,7 @@ int BinaryDescriptor::OctaveKeyLines( cv::Mat& image, ScaleLines &keyLines )
/* some variables' declarations */
float
rho1
,
rho2
,
tempValue
;
float
direction
,
n
ear
,
length
;
float
direction
,
diffN
ear
,
length
;
unsigned
int
octaveID
,
lineIDInOctave
;
/*more than one octave image, organize lines in scale space.
...
...
@@ -784,8 +784,8 @@ int BinaryDescriptor::OctaveKeyLines( cv::Mat& image, ScaleLines &keyLines )
/*nearThreshold depends on the distance of the image coordinate origin to current line.
*so nearThreshold = rho1 * nearThresholdRatio, where nearThresholdRatio = 1-cos(10*pi/180) = 0.0152*/
tempValue
=
(
float
)
(
rho1
*
0.0152
);
float
n
earThreshold
=
(
tempValue
>
6
)
?
(
tempValue
)
:
6
;
nearThreshold
=
(
nearThreshold
<
12
)
?
n
earThreshold
:
12
;
float
diffN
earThreshold
=
(
tempValue
>
6
)
?
(
tempValue
)
:
6
;
diffNearThreshold
=
(
diffNearThreshold
<
12
)
?
diffN
earThreshold
:
12
;
/* compute scaled lenght of current line */
dx
=
fabs
(
edLineVec_
[
octaveCount
]
->
lineEndpoints_
[
lineCurId
][
0
]
-
edLineVec_
[
octaveCount
]
->
lineEndpoints_
[
lineCurId
][
2
]
);
//x1-x2
...
...
@@ -831,10 +831,10 @@ int BinaryDescriptor::OctaveKeyLines( cv::Mat& image, ScaleLines &keyLines )
/* get known term from equation to be compared */
rho2
=
(
float
)
(
scale
[
octaveID
]
*
fabs
(
edLineVec_
[
octaveID
]
->
lineEquations_
[
lineIDInOctave
][
2
]
)
);
/* compute difference between known ters */
n
ear
=
fabs
(
rho1
-
rho2
);
diffN
ear
=
fabs
(
rho1
-
rho2
);
/* two lines are not close in the image */
if
(
near
>
n
earThreshold
)
if
(
diffNear
>
diffN
earThreshold
)
{
continue
;
}
...
...
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