We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f46fa6e commit 53e6854Copy full SHA for 53e6854
modules/stitching/src/matchers.cpp
@@ -70,9 +70,12 @@ struct MatchPairsBody : ParallelLoopBody
70
71
void operator ()(const Range &r) const
72
{
73
+ cv::RNG rng = cv::theRNG(); // save entry rng state
74
const int num_images = static_cast<int>(features.size());
75
for (int i = r.start; i < r.end; ++i)
76
77
+ cv::theRNG() = cv::RNG(rng.state + i); // force "stable" RNG seed for each processed pair
78
+
79
int from = near_pairs[i].first;
80
int to = near_pairs[i].second;
81
int pair_idx = from*num_images + to;
0 commit comments