mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +08:00
Merge pull request #9297 from alalek:akaze_remove_rand
This commit is contained in:
commit
15aa0df23c
@ -2133,7 +2133,7 @@ void generateDescriptorSubsample(Mat& sampleList, Mat& comparisons, int nbits,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
srand(1024);
|
RNG rng(1024);
|
||||||
Mat_<int> comps = Mat_<int>(nchannels * (int)ceil(nbits / (float)nchannels), 2);
|
Mat_<int> comps = Mat_<int>(nchannels * (int)ceil(nbits / (float)nchannels), 2);
|
||||||
comps = 1000;
|
comps = 1000;
|
||||||
|
|
||||||
@ -2145,7 +2145,7 @@ void generateDescriptorSubsample(Mat& sampleList, Mat& comparisons, int nbits,
|
|||||||
samples = -1;
|
samples = -1;
|
||||||
|
|
||||||
for (int i = 0; i < npicks; i++) {
|
for (int i = 0; i < npicks; i++) {
|
||||||
int k = rand() % (fullM.rows - i);
|
int k = rng(fullM.rows - i);
|
||||||
if (i < 6) {
|
if (i < 6) {
|
||||||
// Force use of the coarser grid values and comparisons
|
// Force use of the coarser grid values and comparisons
|
||||||
k = i;
|
k = i;
|
||||||
|
Loading…
Reference in New Issue
Block a user