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
adb630ba
Commit
adb630ba
authored
6 years ago
by
Alexander Nesterov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Corrected parameters
parent
1f7728db
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
qrcode.cpp
modules/objdetect/src/qrcode.cpp
+2
-3
No files found.
modules/objdetect/src/qrcode.cpp
View file @
adb630ba
...
...
@@ -968,8 +968,7 @@ bool QRDecode::samplingForVersion()
const
int
delta_rows
=
cvRound
((
postIntermediate
.
rows
*
1.0
)
/
version_size
);
const
int
delta_cols
=
cvRound
((
postIntermediate
.
cols
*
1.0
)
/
version_size
);
vector
<
double
>
listFrequencyElem
(
version_size
*
version_size
,
0
);
int
k
=
0
;
vector
<
double
>
listFrequencyElem
;
for
(
int
r
=
0
;
r
<
postIntermediate
.
rows
;
r
+=
delta_rows
)
{
for
(
int
c
=
0
;
c
<
postIntermediate
.
cols
;
c
+=
delta_cols
)
...
...
@@ -978,7 +977,7 @@ bool QRDecode::samplingForVersion()
Range
(
r
,
min
(
r
+
delta_rows
,
postIntermediate
.
rows
)),
Range
(
c
,
min
(
c
+
delta_cols
,
postIntermediate
.
cols
)));
const
double
frequencyElem
=
(
countNonZero
(
tile
)
*
1.0
)
/
tile
.
total
();
listFrequencyElem
[
k
]
=
frequencyElem
;
k
++
;
listFrequencyElem
.
push_back
(
frequencyElem
)
;
}
}
...
...
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