{"action":"created","comment":{"url":"https://api.github.com/repos/Itseez/opencv/pulls/comments/22826610","id":22826610,"diff_hunk":"@@ -0,0 +1,150 @@\n+#include <opencv2/features2d.hpp>\n+#include <opencv2/xfeatures2d.hpp>\n+#include <opencv2/imgcodecs.hpp>\n+#include <opencv2/opencv.hpp>\n+#include <vector>\n+#include <iostream>\n+\n+using namespace std;\n+using namespace cv;\n+\n+const float inlier_threshold = 2.5f; // Distance threshold to identify inliers\n+const float nn_match_ratio = 0.8f;   // Nearest neighbor matching ratio\n+\n+int main(void)\n+{\n+\tMat img1 = imread(\"D:/OpenCV3.0GitHub/opencv/samples/data/graf1.png\", IMREAD_GRAYSCALE);","path":"samples/cpp/tutorial_code/xfeatures2D/RI_BRIEF_match.cpp","position":16,"original_position":16,"commit_id":"edf8fcae419943a79aacd772634608ca44dc1a40","original_commit_id":"edf8fcae419943a79aacd772634608ca44dc1a40","user":{"login":"ilya-lavrenov","id":2566854,"avatar_url":"https://avatars.githubusercontent.com/u/2566854?v=3","gravatar_id":"","url":"https://api.github.com/users/ilya-lavrenov","html_url":"https://github.com/ilya-lavrenov","followers_url":"https://api.github.com/users/ilya-lavrenov/followers","following_url":"https://api.github.com/users/ilya-lavrenov/following{/other_user}","gists_url":"https://api.github.com/users/ilya-lavrenov/gists{/gist_id}","starred_url":"https://api.github.com/users/ilya-lavrenov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilya-lavrenov/subscriptions","organizations_url":"https://api.github.com/users/ilya-lavrenov/orgs","repos_url":"https://api.github.com/users/ilya-lavrenov/repos","events_url":"https://api.github.com/users/ilya-lavrenov/events{/privacy}","received_events_url":"https://api.github.com/users/ilya-lavrenov/received_events","type":"User","site_admin":false},"body":"please, don't use absolute names","created_at":"2015-01-12T22:03:00Z","updated_at":"2015-01-12T22:03:00Z","html_url":"https://github.com/Itseez/opencv/pull/3576#discussion_r22826610","pull_request_url":"https://api.github.com/repos/Itseez/opencv/pulls/3576","_links":{"self":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/comments/22826610"},"html":{"href":"https://github.com/Itseez/opencv/pull/3576#discussion_r22826610"},"pull_request":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/3576"}}},"pull_request":{"url":"https://api.github.com/repos/Itseez/opencv/pulls/3576","id":26787410,"html_url":"https://github.com/Itseez/opencv/pull/3576","diff_url":"https://github.com/Itseez/opencv/pull/3576.diff","patch_url":"https://github.com/Itseez/opencv/pull/3576.patch","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/3576","number":3576,"state":"open","locked":false,"title":"Rotation invariant brief","user":{"login":"GilLevi","id":6024900,"avatar_url":"https://avatars.githubusercontent.com/u/6024900?v=3","gravatar_id":"","url":"https://api.github.com/users/GilLevi","html_url":"https://github.com/GilLevi","followers_url":"https://api.github.com/users/GilLevi/followers","following_url":"https://api.github.com/users/GilLevi/following{/other_user}","gists_url":"https://api.github.com/users/GilLevi/gists{/gist_id}","starred_url":"https://api.github.com/users/GilLevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GilLevi/subscriptions","organizations_url":"https://api.github.com/users/GilLevi/orgs","repos_url":"https://api.github.com/users/GilLevi/repos","events_url":"https://api.github.com/users/GilLevi/events{/privacy}","received_events_url":"https://api.github.com/users/GilLevi/received_events","type":"User","site_admin":false},"body":"Added rotation invariance to the BRIEF descriptor. The approach is explained and evaluated in the following my blog post:\r\n\r\nhttps://gilscvblog.wordpress.com/2015/01/02/adding-rotation-invariance-to-the-brief-descriptor/\r\n\r\n\r\nThe descriptor itself is implemented in opencv_contrib (I'll make a separate pull request), in the opencv repository I only added a tutorial.","created_at":"2015-01-03T21:51:22Z","updated_at":"2015-01-12T22:03:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"389d482b3cb1f2223ca729f2ca522ddafe02a030","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Itseez/opencv/pulls/3576/commits","review_comments_url":"https://api.github.com/repos/Itseez/opencv/pulls/3576/comments","review_comment_url":"https://api.github.com/repos/Itseez/opencv/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/3576/comments","statuses_url":"https://api.github.com/repos/Itseez/opencv/statuses/edf8fcae419943a79aacd772634608ca44dc1a40","head":{"label":"GilLevi:RotationInvariantBRIEF","ref":"RotationInvariantBRIEF","sha":"edf8fcae419943a79aacd772634608ca44dc1a40","user":{"login":"GilLevi","id":6024900,"avatar_url":"https://avatars.githubusercontent.com/u/6024900?v=3","gravatar_id":"","url":"https://api.github.com/users/GilLevi","html_url":"https://github.com/GilLevi","followers_url":"https://api.github.com/users/GilLevi/followers","following_url":"https://api.github.com/users/GilLevi/following{/other_user}","gists_url":"https://api.github.com/users/GilLevi/gists{/gist_id}","starred_url":"https://api.github.com/users/GilLevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GilLevi/subscriptions","organizations_url":"https://api.github.com/users/GilLevi/orgs","repos_url":"https://api.github.com/users/GilLevi/repos","events_url":"https://api.github.com/users/GilLevi/events{/privacy}","received_events_url":"https://api.github.com/users/GilLevi/received_events","type":"User","site_admin":false},"repo":{"id":28637875,"name":"opencv","full_name":"GilLevi/opencv","owner":{"login":"GilLevi","id":6024900,"avatar_url":"https://avatars.githubusercontent.com/u/6024900?v=3","gravatar_id":"","url":"https://api.github.com/users/GilLevi","html_url":"https://github.com/GilLevi","followers_url":"https://api.github.com/users/GilLevi/followers","following_url":"https://api.github.com/users/GilLevi/following{/other_user}","gists_url":"https://api.github.com/users/GilLevi/gists{/gist_id}","starred_url":"https://api.github.com/users/GilLevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GilLevi/subscriptions","organizations_url":"https://api.github.com/users/GilLevi/orgs","repos_url":"https://api.github.com/users/GilLevi/repos","events_url":"https://api.github.com/users/GilLevi/events{/privacy}","received_events_url":"https://api.github.com/users/GilLevi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GilLevi/opencv","description":"Open Source Computer Vision Library","fork":true,"url":"https://api.github.com/repos/GilLevi/opencv","forks_url":"https://api.github.com/repos/GilLevi/opencv/forks","keys_url":"https://api.github.com/repos/GilLevi/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GilLevi/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GilLevi/opencv/teams","hooks_url":"https://api.github.com/repos/GilLevi/opencv/hooks","issue_events_url":"https://api.github.com/repos/GilLevi/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/GilLevi/opencv/events","assignees_url":"https://api.github.com/repos/GilLevi/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/GilLevi/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/GilLevi/opencv/tags","blobs_url":"https://api.github.com/repos/GilLevi/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GilLevi/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GilLevi/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/GilLevi/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GilLevi/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/GilLevi/opencv/languages","stargazers_url":"https://api.github.com/repos/GilLevi/opencv/stargazers","contributors_url":"https://api.github.com/repos/GilLevi/opencv/contributors","subscribers_url":"https://api.github.com/repos/GilLevi/opencv/subscribers","subscription_url":"https://api.github.com/repos/GilLevi/opencv/subscription","commits_url":"https://api.github.com/repos/GilLevi/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/GilLevi/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/GilLevi/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/GilLevi/opencv/issues/comments/{number}","contents_url":"https://api.github.com/repos/GilLevi/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/GilLevi/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GilLevi/opencv/merges","archive_url":"https://api.github.com/repos/GilLevi/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GilLevi/opencv/downloads","issues_url":"https://api.github.com/repos/GilLevi/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/GilLevi/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/GilLevi/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/GilLevi/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GilLevi/opencv/labels{/name}","releases_url":"https://api.github.com/repos/GilLevi/opencv/releases{/id}","created_at":"2014-12-30T16:41:32Z","updated_at":"2015-01-03T22:12:30Z","pushed_at":"2015-01-03T22:29:51Z","git_url":"git://github.com/GilLevi/opencv.git","ssh_url":"git@github.com:GilLevi/opencv.git","clone_url":"https://github.com/GilLevi/opencv.git","svn_url":"https://github.com/GilLevi/opencv","homepage":"opencv.org","size":430007,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Itseez:master","ref":"master","sha":"6cb93445e1a629e1a134c35e740d627cad64126a","user":{"login":"Itseez","id":1786446,"avatar_url":"https://avatars.githubusercontent.com/u/1786446?v=3","gravatar_id":"","url":"https://api.github.com/users/Itseez","html_url":"https://github.com/Itseez","followers_url":"https://api.github.com/users/Itseez/followers","following_url":"https://api.github.com/users/Itseez/following{/other_user}","gists_url":"https://api.github.com/users/Itseez/gists{/gist_id}","starred_url":"https://api.github.com/users/Itseez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itseez/subscriptions","organizations_url":"https://api.github.com/users/Itseez/orgs","repos_url":"https://api.github.com/users/Itseez/repos","events_url":"https://api.github.com/users/Itseez/events{/privacy}","received_events_url":"https://api.github.com/users/Itseez/received_events","type":"Organization","site_admin":false},"repo":{"id":5108051,"name":"opencv","full_name":"Itseez/opencv","owner":{"login":"Itseez","id":1786446,"avatar_url":"https://avatars.githubusercontent.com/u/1786446?v=3","gravatar_id":"","url":"https://api.github.com/users/Itseez","html_url":"https://github.com/Itseez","followers_url":"https://api.github.com/users/Itseez/followers","following_url":"https://api.github.com/users/Itseez/following{/other_user}","gists_url":"https://api.github.com/users/Itseez/gists{/gist_id}","starred_url":"https://api.github.com/users/Itseez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itseez/subscriptions","organizations_url":"https://api.github.com/users/Itseez/orgs","repos_url":"https://api.github.com/users/Itseez/repos","events_url":"https://api.github.com/users/Itseez/events{/privacy}","received_events_url":"https://api.github.com/users/Itseez/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Itseez/opencv","description":"Open Source Computer Vision Library","fork":false,"url":"https://api.github.com/repos/Itseez/opencv","forks_url":"https://api.github.com/repos/Itseez/opencv/forks","keys_url":"https://api.github.com/repos/Itseez/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Itseez/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Itseez/opencv/teams","hooks_url":"https://api.github.com/repos/Itseez/opencv/hooks","issue_events_url":"https://api.github.com/repos/Itseez/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/Itseez/opencv/events","assignees_url":"https://api.github.com/repos/Itseez/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/Itseez/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/Itseez/opencv/tags","blobs_url":"https://api.github.com/repos/Itseez/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Itseez/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Itseez/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/Itseez/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Itseez/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/Itseez/opencv/languages","stargazers_url":"https://api.github.com/repos/Itseez/opencv/stargazers","contributors_url":"https://api.github.com/repos/Itseez/opencv/contributors","subscribers_url":"https://api.github.com/repos/Itseez/opencv/subscribers","subscription_url":"https://api.github.com/repos/Itseez/opencv/subscription","commits_url":"https://api.github.com/repos/Itseez/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/Itseez/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/Itseez/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/Itseez/opencv/issues/comments/{number}","contents_url":"https://api.github.com/repos/Itseez/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/Itseez/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Itseez/opencv/merges","archive_url":"https://api.github.com/repos/Itseez/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Itseez/opencv/downloads","issues_url":"https://api.github.com/repos/Itseez/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/Itseez/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/Itseez/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/Itseez/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Itseez/opencv/labels{/name}","releases_url":"https://api.github.com/repos/Itseez/opencv/releases{/id}","created_at":"2012-07-19T09:40:17Z","updated_at":"2015-01-12T21:42:13Z","pushed_at":"2015-01-12T11:31:08Z","git_url":"git://github.com/Itseez/opencv.git","ssh_url":"git@github.com:Itseez/opencv.git","clone_url":"https://github.com/Itseez/opencv.git","svn_url":"https://github.com/Itseez/opencv","homepage":"opencv.org","size":1080559,"stargazers_count":4207,"watchers_count":4207,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3855,"mirror_url":null,"open_issues_count":37,"forks":3855,"open_issues":37,"watchers":4207,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/3576"},"html":{"href":"https://github.com/Itseez/opencv/pull/3576"},"issue":{"href":"https://api.github.com/repos/Itseez/opencv/issues/3576"},"comments":{"href":"https://api.github.com/repos/Itseez/opencv/issues/3576/comments"},"review_comments":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/3576/comments"},"review_comment":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/3576/commits"},"statuses":{"href":"https://api.github.com/repos/Itseez/opencv/statuses/edf8fcae419943a79aacd772634608ca44dc1a40"}}}}