mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
Corrected parameters
This commit is contained in:
parent
1f7728db35
commit
adb630ba3a
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user