{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test2/issues/393","labels_url":"https://api.github.com/repos/mshabunin/test2/issues/393/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test2/issues/393/comments","events_url":"https://api.github.com/repos/mshabunin/test2/issues/393/events","html_url":"https://github.com/mshabunin/test2/issues/393","id":95187453,"number":393,"title":"BestOf2NearestMatcher gives different result on second run","user":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-15T13:08:25Z","updated_at":"2015-07-15T13:08:25Z","closed_at":null,"body":"Converted from http://code.opencv.org/issues/3579\r\n```\n|| by Christopher Herbon on 2014-02-27 01:59\n|| Status: Open\n|| Priority: Normal\n|| Affected: 2.4.8 (latest release)\n|| Target: 2.4.10\n|| Category: stitching\n|| Tracker: bug\n```\n\nBestOf2NearestMatcher gives different result on second run\n-----------\n```\nWhen I excecute the folloing code twice with the exact same inputs, I\nget two different but similar results.\n\nBestOf2NearestMatcher matcher(false, 0.3);  \nvector<MatchesInfo> temp_pairwise_matches = [...];  \nvector<ImageFeatures> temp_features = [...];  \nmatcher(temp_features, pairwise_matches);  \nmatcher.collectGarbage();\n\nA little more info: I have spend a lot of time isolating the problem to\nthis code. I create two different copies of BestOf2NearestMatcher and\nall input data is being cloned, so there is definitively no change in\nthe input. The result on the first run is always the same and so is the\nresult on the second and third run, and so on. But none of the results\nequals one of the previous results.\n```\n\nHistory\n-------\n##### by Dinar Ahmatnurov on 2014-03-05 05:30\n```\n-   Status changed from New to Open\n```\n##### by Alexander Smorkalov on 2014-04-30 07:06\n```\n-   Target version changed from 2.4.9 to 2.4.10\n```"}}