OpenCV keeps random number generators in thread-local storage and reuses them between function calls. This can lead to inconsistent results between different call sequences.
In OpenCV 2.1, the variable tlsRNGKey
is defined in cxrand.cpp and not exposed through the headers.
Am I missing something? I can't be the first person to need reproducible clustering results, can I?