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
2231018c
Commit
2231018c
authored
Jun 04, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
parents
84860f21
25a01dc4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
binary_descriptor.cpp
modules/line_descriptor/src/binary_descriptor.cpp
+3
-12
sparse_match_interpolators.cpp
modules/ximgproc/src/sparse_match_interpolators.cpp
+1
-1
No files found.
modules/line_descriptor/src/binary_descriptor.cpp
View file @
2231018c
...
...
@@ -504,7 +504,7 @@ void BinaryDescriptor::detectImpl( const Mat& imageSrc, std::vector<KeyLine>& ke
/* delete undesired KeyLines, according to input mask */
if
(
!
mask
.
empty
()
)
{
for
(
size_t
keyCounter
=
0
;
keyCounter
<
keylines
.
size
();
keyCounter
++
)
for
(
size_t
keyCounter
=
0
;
keyCounter
<
keylines
.
size
();
)
{
KeyLine
&
kl
=
keylines
[
keyCounter
];
...
...
@@ -517,6 +517,8 @@ void BinaryDescriptor::detectImpl( const Mat& imageSrc, std::vector<KeyLine>& ke
if
(
mask
.
at
<
uchar
>
(
(
int
)
kl
.
startPointY
,
(
int
)
kl
.
startPointX
)
==
0
&&
mask
.
at
<
uchar
>
(
(
int
)
kl
.
endPointY
,
(
int
)
kl
.
endPointX
)
==
0
)
keylines
.
erase
(
keylines
.
begin
()
+
keyCounter
);
else
keyCounter
++
;
}
}
...
...
@@ -1342,17 +1344,6 @@ int BinaryDescriptor::computeLBD( ScaleLines &keyLines, bool useDetectionData )
}
/* end for(short lineIDInSameLine = 0; lineIDInSameLine<sameLineSize;
lineIDInSameLine++) */
cv
::
Mat
appoggio
=
cv
::
Mat
(
1
,
32
,
CV_32FC1
);
float
*
pointerToRow
=
appoggio
.
ptr
<
float
>
(
0
);
for
(
int
g
=
0
;
g
<
32
;
g
++
)
{
/* get LBD data */
float
*
des_Vec
=
&
keyLines
[
lineIDInScaleVec
][
0
].
descriptor
.
front
();
*
pointerToRow
=
des_Vec
[
g
];
pointerToRow
++
;
}
}
/* end for(short lineIDInScaleVec = 0;
lineIDInScaleVec<numOfFinalLine; lineIDInScaleVec++) */
...
...
modules/ximgproc/src/sparse_match_interpolators.cpp
View file @
2231018c
...
...
@@ -835,7 +835,7 @@ void EdgeAwareInterpolatorImpl::ransacInterpolation(vector<SparseMatch>& matches
float
*
weighted_inlier_nums
=
new
float
[
match_num
];
float
*
eps
=
new
float
[
match_num
];
for
(
int
i
=
0
;
i
<
match_num
;
i
++
)
weighted_inlier_nums
[
i
]
=
-
1E+10
F
;
weighted_inlier_nums
[
i
]
=
-
std
::
numeric_limits
<
float
>::
max
()
;
for
(
int
i
=
0
;
i
<
ransac_num_stripes
;
i
++
)
rngs
[
i
]
=
RNG
(
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