{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test2/issues/505","labels_url":"https://api.github.com/repos/mshabunin/test2/issues/505/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test2/issues/505/comments","events_url":"https://api.github.com/repos/mshabunin/test2/issues/505/events","html_url":"https://github.com/mshabunin/test2/issues/505","id":95418530,"number":505,"title":"cv::Flann knnSearch distances","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-16T11:58:38Z","updated_at":"2015-07-16T11:58:38Z","closed_at":null,"body":"Transferred from http://code.opencv.org/issues/3702\r\n```\n|| Martin Beckett on 2014-05-20 21:06\n|| Priority: Normal\n|| Affected: 2.4.9 (latest release)\n|| Category: flann\n|| Tracker: Bug\n|| Difficulty: Medium\n|| PR: \n|| Platform: x64 / Windows\n```\n\ncv::Flann knnSearch distances\n-----------\n```\nThe returned distances from knnSearch don't represent the distance to the nearest neighbours returned in the index\r\nIt appears that they are the L1/L2 distance to the query points from the origin.\r\nSo  with 2 query points and k=3 index | 1,2,3 || 2,3,4 | would return the same distances | d1,d1,d2 ||d2,d2,d2|\n```\n\nHistory\n-------\n##### Daniil Osokin on 2014-07-07 16:14\n```\nHi Martin, thanks for response! Could you please submit a test to reproduce the bug, or, better, send us a pull request with the fix?\n-   Priority changed from High to Normal\n-   Assignee set to Martin Beckett\n-   Status changed from New to Incomplete\n-   Category set to flann\n```"}}