• Matthew Self's avatar
    Make goodFeaturesToTrack() return deterministic results · 72672c29
    Matthew Self authored
    When using OCL, the results of goodFeaturesToTrack() vary slightly from
    run to run. This appears to be because the order of the results from
    the findCorners kernel depends on thread execution and the sorting
    function that is used at the end to rank the features only enforces are
    partial sort order.
    
    This does not materially impact the quality of the results, but it
    makes it hard to build regression tests and generally introduces noise
    into the system that should be avoided.
    
    An easy fix is to change the sort function to enforce a total sort on
    the features, even in cases where the match quality is exactly the same
    for two features.
    72672c29
Name
Last commit
Last update
.github Loading commit data...
3rdparty Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.tgitconfig Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...