{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/pulls/1","id":106837407,"html_url":"https://github.com/hekammadhav/Tech-No-Logic/pull/1","diff_url":"https://github.com/hekammadhav/Tech-No-Logic/pull/1.diff","patch_url":"https://github.com/hekammadhav/Tech-No-Logic/pull/1.patch","issue_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/issues/1","number":1,"state":"closed","locked":false,"title":"new code","user":{"login":"Rajvi11","id":25637991,"avatar_url":"https://avatars.githubusercontent.com/u/25637991?v=3","gravatar_id":"","url":"https://api.github.com/users/Rajvi11","html_url":"https://github.com/Rajvi11","followers_url":"https://api.github.com/users/Rajvi11/followers","following_url":"https://api.github.com/users/Rajvi11/following{/other_user}","gists_url":"https://api.github.com/users/Rajvi11/gists{/gist_id}","starred_url":"https://api.github.com/users/Rajvi11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rajvi11/subscriptions","organizations_url":"https://api.github.com/users/Rajvi11/orgs","repos_url":"https://api.github.com/users/Rajvi11/repos","events_url":"https://api.github.com/users/Rajvi11/events{/privacy}","received_events_url":"https://api.github.com/users/Rajvi11/received_events","type":"User","site_admin":false},"body":"banana=imread('banana.jpeg');\r\n\r\nboxImage = rgb2gray(banana);\r\nfigure;\r\nimshow(boxImage);\r\ntitle('Image of a banana');\r\ncombine= imread('combine.png');\r\nsceneImage = rgb2gray(combine);\r\n% figure;\r\n% imshow(sceneImage);\r\n% title('Image of a Cluttered Scene');\r\nboxPoints = detectSURFFeatures(boxImage);\r\nscenePoints = detectSURFFeatures(sceneImage);\r\n% figure;\r\n% imshow(boxImage);\r\n% title('100 Strongest Feature Points from Box Image');\r\nhold on;\r\nplot(selectStrongest(boxPoints, 100));\r\n% figure;\r\n% imshow(sceneImage);\r\n% title('300 Strongest Feature Points from Scene Image');\r\nhold on;\r\nplot(selectStrongest(scenePoints, 300));\r\n[boxFeatures, boxPoints] = extractFeatures(boxImage, boxPoints);\r\n[sceneFeatures, scenePoints] = extractFeatures(sceneImage, scenePoints);\r\nboxPairs = matchFeatures(boxFeatures, sceneFeatures);\r\nmatchedBoxPoints = boxPoints(boxPairs(:, 1), :);\r\nmatchedScenePoints = scenePoints(boxPairs(:, 2), :);\r\nfigure;\r\nshowMatchedFeatures(boxImage, sceneImage, matchedBoxPoints, ...\r\n    matchedScenePoints, 'montage');\r\ntitle('Putatively Matched Points (Including Outliers)');\r\n[tform, inlierBoxPoints, inlierScenePoints] = ...\r\n    estimateGeometricTransform(matchedBoxPoints, matchedScenePoints, 'affine');\r\nfigure;\r\nshowMatchedFeatures(boxImage, sceneImage, inlierBoxPoints, ...\r\n    inlierScenePoints, 'montage');\r\ntitle('Matched Points (Inliers Only)');\r\nboxPolygon = [1, 1;...                           % top-left\r\n        size(boxImage, 2), 1;...                 % top-right\r\n        size(boxImage, 2), size(boxImage, 1);... % bottom-right\r\n        1, size(boxImage, 1);...                 % bottom-left\r\n        1, 1];                   % top-left again to close the polygon\r\n    \r\n    newBoxPolygon = transformPointsForward(tform, boxPolygon);\r\n figure;\r\nimshow(sceneImage);\r\nhold on;\r\nline(newBoxPolygon(:, 1), newBoxPolygon(:, 2), 'Color', 'y');\r\ntitle('Detected Box');\r\napple=imread('apple1.jpeg');\r\nelephantImage = rgb2gray(apple);\r\nfigure;\r\nimshow(elephantImage);\r\ntitle('Image of an apple');\r\nelephantPoints = detectSURFFeatures(elephantImage);\r\n% figure;\r\n% imshow(elephantImage);\r\n% hold on;\r\n% plot(selectStrongest(elephantPoints, 100));\r\n% title('100 Strongest Feature Points from Elephant Image');\r\n[elephantFeatures, elephantPoints] = extractFeatures(elephantImage, elephantPoints);\r\nelephantPairs = matchFeatures(elephantFeatures, sceneFeatures, 'MaxRatio', 0.9);\r\nmatchedElephantPoints = elephantPoints(elephantPairs(:, 1), :);\r\nmatchedScenePoints = scenePoints(elephantPairs(:, 2), :);\r\nfigure;\r\nshowMatchedFeatures(elephantImage, sceneImage, matchedElephantPoints, ...\r\n    matchedScenePoints, 'montage');\r\ntitle('Putatively Matched Points (Including Outliers)');\r\n\r\n[tform, inlierElephantPoints, inlierScenePoints] = ...\r\n    estimateGeometricTransform(matchedElephantPoints, matchedScenePoints, 'affine');\r\nfigure;\r\nshowMatchedFeatures(elephantImage, sceneImage, inlierElephantPoints, ...\r\n    inlierScenePoints, 'montage');\r\ntitle('Matched Points (Inliers Only)');\r\n\r\nelephantPolygon = [1, 1;...                                 % top-left\r\n        size(elephantImage, 2), 1;...                       % top-right\r\n        size(elephantImage, 2), size(elephantImage, 1);...  % bottom-right\r\n        1, size(elephantImage, 1);...                       % bottom-left\r\n        1,1];                         % top-left again to close the polygon\r\n\r\nnewElephantPolygon = transformPointsForward(tform, elephantPolygon);\r\n\r\nfigure;\r\nimshow(sceneImage);\r\nhold on;\r\nline(newBoxPolygon(:, 1), newBoxPolygon(:, 2), 'Color', 'y');\r\nline(newElephantPolygon(:, 1), newElephantPolygon(:, 2), 'Color', 'g');\r\ntitle('Detected banana and apple');\r\n","created_at":"2017-02-18T00:29:46Z","updated_at":"2017-02-18T00:31:02Z","closed_at":"2017-02-18T00:31:02Z","merged_at":"2017-02-18T00:31:02Z","merge_commit_sha":"ea7b235f112bd74db01d8c317c8dab01d3823666","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/pulls/1/commits","review_comments_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/pulls/1/comments","review_comment_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/issues/1/comments","statuses_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/statuses/978c030f19dd1109023730047ebd708d31940117","head":{"label":"Rajvi11:patch-1","ref":"patch-1","sha":"978c030f19dd1109023730047ebd708d31940117","user":{"login":"Rajvi11","id":25637991,"avatar_url":"https://avatars.githubusercontent.com/u/25637991?v=3","gravatar_id":"","url":"https://api.github.com/users/Rajvi11","html_url":"https://github.com/Rajvi11","followers_url":"https://api.github.com/users/Rajvi11/followers","following_url":"https://api.github.com/users/Rajvi11/following{/other_user}","gists_url":"https://api.github.com/users/Rajvi11/gists{/gist_id}","starred_url":"https://api.github.com/users/Rajvi11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rajvi11/subscriptions","organizations_url":"https://api.github.com/users/Rajvi11/orgs","repos_url":"https://api.github.com/users/Rajvi11/repos","events_url":"https://api.github.com/users/Rajvi11/events{/privacy}","received_events_url":"https://api.github.com/users/Rajvi11/received_events","type":"User","site_admin":false},"repo":{"id":82349764,"name":"Tech-No-Logic","full_name":"Rajvi11/Tech-No-Logic","owner":{"login":"Rajvi11","id":25637991,"avatar_url":"https://avatars.githubusercontent.com/u/25637991?v=3","gravatar_id":"","url":"https://api.github.com/users/Rajvi11","html_url":"https://github.com/Rajvi11","followers_url":"https://api.github.com/users/Rajvi11/followers","following_url":"https://api.github.com/users/Rajvi11/following{/other_user}","gists_url":"https://api.github.com/users/Rajvi11/gists{/gist_id}","starred_url":"https://api.github.com/users/Rajvi11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rajvi11/subscriptions","organizations_url":"https://api.github.com/users/Rajvi11/orgs","repos_url":"https://api.github.com/users/Rajvi11/repos","events_url":"https://api.github.com/users/Rajvi11/events{/privacy}","received_events_url":"https://api.github.com/users/Rajvi11/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Rajvi11/Tech-No-Logic","description":"Hackathon commit repository","fork":true,"url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic","forks_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/forks","keys_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/teams","hooks_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/hooks","issue_events_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/issues/events{/number}","events_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/events","assignees_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/assignees{/user}","branches_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/branches{/branch}","tags_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/tags","blobs_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/git/refs{/sha}","trees_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/statuses/{sha}","languages_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/languages","stargazers_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/stargazers","contributors_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/contributors","subscribers_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/subscribers","subscription_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/subscription","commits_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/commits{/sha}","git_commits_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/git/commits{/sha}","comments_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/comments{/number}","issue_comment_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/issues/comments{/number}","contents_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/contents/{+path}","compare_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/merges","archive_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/downloads","issues_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/issues{/number}","pulls_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/pulls{/number}","milestones_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/milestones{/number}","notifications_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/labels{/name}","releases_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/releases{/id}","deployments_url":"https://api.github.com/repos/Rajvi11/Tech-No-Logic/deployments","created_at":"2017-02-18T00:27:44Z","updated_at":"2017-02-17T14:41:46Z","pushed_at":"2017-02-18T00:28:11Z","git_url":"git://github.com/Rajvi11/Tech-No-Logic.git","ssh_url":"git@github.com:Rajvi11/Tech-No-Logic.git","clone_url":"https://github.com/Rajvi11/Tech-No-Logic.git","svn_url":"https://github.com/Rajvi11/Tech-No-Logic","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"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":"hekammadhav:master","ref":"master","sha":"f8a0a493d4fbbbac39a59e69eaf40704ee08ac73","user":{"login":"hekammadhav","id":25661661,"avatar_url":"https://avatars.githubusercontent.com/u/25661661?v=3","gravatar_id":"","url":"https://api.github.com/users/hekammadhav","html_url":"https://github.com/hekammadhav","followers_url":"https://api.github.com/users/hekammadhav/followers","following_url":"https://api.github.com/users/hekammadhav/following{/other_user}","gists_url":"https://api.github.com/users/hekammadhav/gists{/gist_id}","starred_url":"https://api.github.com/users/hekammadhav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hekammadhav/subscriptions","organizations_url":"https://api.github.com/users/hekammadhav/orgs","repos_url":"https://api.github.com/users/hekammadhav/repos","events_url":"https://api.github.com/users/hekammadhav/events{/privacy}","received_events_url":"https://api.github.com/users/hekammadhav/received_events","type":"User","site_admin":false},"repo":{"id":82306085,"name":"Tech-No-Logic","full_name":"hekammadhav/Tech-No-Logic","owner":{"login":"hekammadhav","id":25661661,"avatar_url":"https://avatars.githubusercontent.com/u/25661661?v=3","gravatar_id":"","url":"https://api.github.com/users/hekammadhav","html_url":"https://github.com/hekammadhav","followers_url":"https://api.github.com/users/hekammadhav/followers","following_url":"https://api.github.com/users/hekammadhav/following{/other_user}","gists_url":"https://api.github.com/users/hekammadhav/gists{/gist_id}","starred_url":"https://api.github.com/users/hekammadhav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hekammadhav/subscriptions","organizations_url":"https://api.github.com/users/hekammadhav/orgs","repos_url":"https://api.github.com/users/hekammadhav/repos","events_url":"https://api.github.com/users/hekammadhav/events{/privacy}","received_events_url":"https://api.github.com/users/hekammadhav/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hekammadhav/Tech-No-Logic","description":"Hackathon commit repository","fork":false,"url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic","forks_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/forks","keys_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/teams","hooks_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/hooks","issue_events_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/issues/events{/number}","events_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/events","assignees_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/assignees{/user}","branches_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/branches{/branch}","tags_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/tags","blobs_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/git/refs{/sha}","trees_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/statuses/{sha}","languages_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/languages","stargazers_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/stargazers","contributors_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/contributors","subscribers_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/subscribers","subscription_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/subscription","commits_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/commits{/sha}","git_commits_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/git/commits{/sha}","comments_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/comments{/number}","issue_comment_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/issues/comments{/number}","contents_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/contents/{+path}","compare_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/merges","archive_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/downloads","issues_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/issues{/number}","pulls_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/pulls{/number}","milestones_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/milestones{/number}","notifications_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/labels{/name}","releases_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/releases{/id}","deployments_url":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/deployments","created_at":"2017-02-17T14:41:46Z","updated_at":"2017-02-17T14:41:46Z","pushed_at":"2017-02-18T00:31:02Z","git_url":"git://github.com/hekammadhav/Tech-No-Logic.git","ssh_url":"git@github.com:hekammadhav/Tech-No-Logic.git","clone_url":"https://github.com/hekammadhav/Tech-No-Logic.git","svn_url":"https://github.com/hekammadhav/Tech-No-Logic","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/pulls/1"},"html":{"href":"https://github.com/hekammadhav/Tech-No-Logic/pull/1"},"issue":{"href":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/issues/1"},"comments":{"href":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/hekammadhav/Tech-No-Logic/statuses/978c030f19dd1109023730047ebd708d31940117"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"hekammadhav","id":25661661,"avatar_url":"https://avatars.githubusercontent.com/u/25661661?v=3","gravatar_id":"","url":"https://api.github.com/users/hekammadhav","html_url":"https://github.com/hekammadhav","followers_url":"https://api.github.com/users/hekammadhav/followers","following_url":"https://api.github.com/users/hekammadhav/following{/other_user}","gists_url":"https://api.github.com/users/hekammadhav/gists{/gist_id}","starred_url":"https://api.github.com/users/hekammadhav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hekammadhav/subscriptions","organizations_url":"https://api.github.com/users/hekammadhav/orgs","repos_url":"https://api.github.com/users/hekammadhav/repos","events_url":"https://api.github.com/users/hekammadhav/events{/privacy}","received_events_url":"https://api.github.com/users/hekammadhav/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":91,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"hekammadhav"}}