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
d4d95bd7
Commit
d4d95bd7
authored
Mar 16, 2020
by
Maksim Shabunin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixs several problems found by static analysis
parent
8f49b820
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
AKAZEFeatures.cpp
modules/features2d/src/kaze/AKAZEFeatures.cpp
+1
-0
qrcode.cpp
modules/objdetect/src/qrcode.cpp
+2
-0
No files found.
modules/features2d/src/kaze/AKAZEFeatures.cpp
View file @
d4d95bd7
...
@@ -1323,6 +1323,7 @@ void quantized_counting_sort(const float a[], const int n,
...
@@ -1323,6 +1323,7 @@ void quantized_counting_sort(const float a[], const int n,
const
float
quantum
,
const
int
nkeys
,
const
float
quantum
,
const
int
nkeys
,
int
idx
[
/*n*/
],
int
cum
[
/*nkeys + 1*/
])
int
idx
[
/*n*/
],
int
cum
[
/*nkeys + 1*/
])
{
{
CV_Assert
(
nkeys
>
0
);
memset
(
cum
,
0
,
sizeof
(
cum
[
0
])
*
(
nkeys
+
1
));
memset
(
cum
,
0
,
sizeof
(
cum
[
0
])
*
(
nkeys
+
1
));
// Count up the quantized values
// Count up the quantized values
...
...
modules/objdetect/src/qrcode.cpp
View file @
d4d95bd7
...
@@ -1608,6 +1608,8 @@ bool QRDetectMulti::checkPoints(const vector<Point2f>& quadrangle_points)
...
@@ -1608,6 +1608,8 @@ bool QRDetectMulti::checkPoints(const vector<Point2f>& quadrangle_points)
li2
++
;
li2
++
;
}
}
}
}
if
(
count_w
==
0
)
return
false
;
double
frac
=
double
(
count_b
)
/
double
(
count_w
);
double
frac
=
double
(
count_b
)
/
double
(
count_w
);
double
bottom_bound
=
0.76
;
double
bottom_bound
=
0.76
;
...
...
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