{"action":"created","comment":{"url":"https://api.github.com/repos/yanashulgina93/labs/pulls/comments/70816266","id":70816266,"diff_hunk":"@@ -0,0 +1,286 @@\n+#include \"myFilter.hpp\"\n+#include \"opencv2/imgproc/imgproc.hpp\"\n+#include \"math.h\"\n+#include <stack>\n+#include <iostream>\n+#include \"highgui.h\"\n+\n+void myCanny(const cv::Mat & grayscale, cv::Mat edges, int threshold1, int threshold2)\n+{\n+    cv::Mat gradX, gradY;\n+    cv::Mat gradMagn(grayscale.rows, grayscale.cols, CV_32FC1, 0.0);\n+    cv::Mat gradAngle(grayscale.rows, grayscale.cols, CV_32FC1, 0.0);\n+\n+    cv::Sobel(grayscale, gradX, CV_32FC1, 1, 0);\n+    cv::Sobel(grayscale, gradY, CV_32FC1, 0, 1);\n+\n+    float PI = atan(1)*4;\n+\n+    for(int i = 0; i < gradX.rows; i++)\n+    {\n+        for(int j = 0; j < gradX.cols; j++)\n+        {\n+            gradMagn.at<float>(i,j) = sqrt((gradX.at<float>(i,j)*gradX.at<float>(i,j)) + (gradY.at<float>(i,j)*gradY.at<float>(i,j)));","path":"myFilter.cpp","position":23,"original_position":23,"commit_id":"2106bc562802d8d5e8a19e90964c8e199206a214","original_commit_id":"2106bc562802d8d5e8a19e90964c8e199206a214","user":{"login":"KonstantinMatskevich","id":5683097,"avatar_url":"https://avatars.githubusercontent.com/u/5683097?v=3","gravatar_id":"","url":"https://api.github.com/users/KonstantinMatskevich","html_url":"https://github.com/KonstantinMatskevich","followers_url":"https://api.github.com/users/KonstantinMatskevich/followers","following_url":"https://api.github.com/users/KonstantinMatskevich/following{/other_user}","gists_url":"https://api.github.com/users/KonstantinMatskevich/gists{/gist_id}","starred_url":"https://api.github.com/users/KonstantinMatskevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KonstantinMatskevich/subscriptions","organizations_url":"https://api.github.com/users/KonstantinMatskevich/orgs","repos_url":"https://api.github.com/users/KonstantinMatskevich/repos","events_url":"https://api.github.com/users/KonstantinMatskevich/events{/privacy}","received_events_url":"https://api.github.com/users/KonstantinMatskevich/received_events","type":"User","site_admin":false},"body":"the same for all other matrices","created_at":"2016-07-14T14:33:48Z","updated_at":"2016-07-14T14:33:48Z","html_url":"https://github.com/yanashulgina93/labs/pull/1#discussion_r70816266","pull_request_url":"https://api.github.com/repos/yanashulgina93/labs/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/yanashulgina93/labs/pulls/comments/70816266"},"html":{"href":"https://github.com/yanashulgina93/labs/pull/1#discussion_r70816266"},"pull_request":{"href":"https://api.github.com/repos/yanashulgina93/labs/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/yanashulgina93/labs/pulls/1","id":77460019,"html_url":"https://github.com/yanashulgina93/labs/pull/1","diff_url":"https://github.com/yanashulgina93/labs/pull/1.diff","patch_url":"https://github.com/yanashulgina93/labs/pull/1.patch","issue_url":"https://api.github.com/repos/yanashulgina93/labs/issues/1","number":1,"state":"open","locked":false,"title":"lab1","user":{"login":"yanashulgina93","id":12113564,"avatar_url":"https://avatars.githubusercontent.com/u/12113564?v=3","gravatar_id":"","url":"https://api.github.com/users/yanashulgina93","html_url":"https://github.com/yanashulgina93","followers_url":"https://api.github.com/users/yanashulgina93/followers","following_url":"https://api.github.com/users/yanashulgina93/following{/other_user}","gists_url":"https://api.github.com/users/yanashulgina93/gists{/gist_id}","starred_url":"https://api.github.com/users/yanashulgina93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanashulgina93/subscriptions","organizations_url":"https://api.github.com/users/yanashulgina93/orgs","repos_url":"https://api.github.com/users/yanashulgina93/repos","events_url":"https://api.github.com/users/yanashulgina93/events{/privacy}","received_events_url":"https://api.github.com/users/yanashulgina93/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-14T13:55:01Z","updated_at":"2016-07-14T14:33:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5490970d555bcfdca020b10495328c7108cb43c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/yanashulgina93/labs/pulls/1/commits","review_comments_url":"https://api.github.com/repos/yanashulgina93/labs/pulls/1/comments","review_comment_url":"https://api.github.com/repos/yanashulgina93/labs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yanashulgina93/labs/issues/1/comments","statuses_url":"https://api.github.com/repos/yanashulgina93/labs/statuses/2106bc562802d8d5e8a19e90964c8e199206a214","head":{"label":"yanashulgina93:ys_lab1","ref":"ys_lab1","sha":"2106bc562802d8d5e8a19e90964c8e199206a214","user":{"login":"yanashulgina93","id":12113564,"avatar_url":"https://avatars.githubusercontent.com/u/12113564?v=3","gravatar_id":"","url":"https://api.github.com/users/yanashulgina93","html_url":"https://github.com/yanashulgina93","followers_url":"https://api.github.com/users/yanashulgina93/followers","following_url":"https://api.github.com/users/yanashulgina93/following{/other_user}","gists_url":"https://api.github.com/users/yanashulgina93/gists{/gist_id}","starred_url":"https://api.github.com/users/yanashulgina93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanashulgina93/subscriptions","organizations_url":"https://api.github.com/users/yanashulgina93/orgs","repos_url":"https://api.github.com/users/yanashulgina93/repos","events_url":"https://api.github.com/users/yanashulgina93/events{/privacy}","received_events_url":"https://api.github.com/users/yanashulgina93/received_events","type":"User","site_admin":false},"repo":{"id":63339835,"name":"labs","full_name":"yanashulgina93/labs","owner":{"login":"yanashulgina93","id":12113564,"avatar_url":"https://avatars.githubusercontent.com/u/12113564?v=3","gravatar_id":"","url":"https://api.github.com/users/yanashulgina93","html_url":"https://github.com/yanashulgina93","followers_url":"https://api.github.com/users/yanashulgina93/followers","following_url":"https://api.github.com/users/yanashulgina93/following{/other_user}","gists_url":"https://api.github.com/users/yanashulgina93/gists{/gist_id}","starred_url":"https://api.github.com/users/yanashulgina93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanashulgina93/subscriptions","organizations_url":"https://api.github.com/users/yanashulgina93/orgs","repos_url":"https://api.github.com/users/yanashulgina93/repos","events_url":"https://api.github.com/users/yanashulgina93/events{/privacy}","received_events_url":"https://api.github.com/users/yanashulgina93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yanashulgina93/labs","description":null,"fork":false,"url":"https://api.github.com/repos/yanashulgina93/labs","forks_url":"https://api.github.com/repos/yanashulgina93/labs/forks","keys_url":"https://api.github.com/repos/yanashulgina93/labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yanashulgina93/labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yanashulgina93/labs/teams","hooks_url":"https://api.github.com/repos/yanashulgina93/labs/hooks","issue_events_url":"https://api.github.com/repos/yanashulgina93/labs/issues/events{/number}","events_url":"https://api.github.com/repos/yanashulgina93/labs/events","assignees_url":"https://api.github.com/repos/yanashulgina93/labs/assignees{/user}","branches_url":"https://api.github.com/repos/yanashulgina93/labs/branches{/branch}","tags_url":"https://api.github.com/repos/yanashulgina93/labs/tags","blobs_url":"https://api.github.com/repos/yanashulgina93/labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yanashulgina93/labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yanashulgina93/labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/yanashulgina93/labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yanashulgina93/labs/statuses/{sha}","languages_url":"https://api.github.com/repos/yanashulgina93/labs/languages","stargazers_url":"https://api.github.com/repos/yanashulgina93/labs/stargazers","contributors_url":"https://api.github.com/repos/yanashulgina93/labs/contributors","subscribers_url":"https://api.github.com/repos/yanashulgina93/labs/subscribers","subscription_url":"https://api.github.com/repos/yanashulgina93/labs/subscription","commits_url":"https://api.github.com/repos/yanashulgina93/labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/yanashulgina93/labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/yanashulgina93/labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/yanashulgina93/labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/yanashulgina93/labs/contents/{+path}","compare_url":"https://api.github.com/repos/yanashulgina93/labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yanashulgina93/labs/merges","archive_url":"https://api.github.com/repos/yanashulgina93/labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yanashulgina93/labs/downloads","issues_url":"https://api.github.com/repos/yanashulgina93/labs/issues{/number}","pulls_url":"https://api.github.com/repos/yanashulgina93/labs/pulls{/number}","milestones_url":"https://api.github.com/repos/yanashulgina93/labs/milestones{/number}","notifications_url":"https://api.github.com/repos/yanashulgina93/labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yanashulgina93/labs/labels{/name}","releases_url":"https://api.github.com/repos/yanashulgina93/labs/releases{/id}","deployments_url":"https://api.github.com/repos/yanashulgina93/labs/deployments","created_at":"2016-07-14T13:41:04Z","updated_at":"2016-07-14T13:48:12Z","pushed_at":"2016-07-14T14:21:01Z","git_url":"git://github.com/yanashulgina93/labs.git","ssh_url":"git@github.com:yanashulgina93/labs.git","clone_url":"https://github.com/yanashulgina93/labs.git","svn_url":"https://github.com/yanashulgina93/labs","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"yanashulgina93:master","ref":"master","sha":"2000bcb4b7387d5361aa3e0ff87eaf4045beb486","user":{"login":"yanashulgina93","id":12113564,"avatar_url":"https://avatars.githubusercontent.com/u/12113564?v=3","gravatar_id":"","url":"https://api.github.com/users/yanashulgina93","html_url":"https://github.com/yanashulgina93","followers_url":"https://api.github.com/users/yanashulgina93/followers","following_url":"https://api.github.com/users/yanashulgina93/following{/other_user}","gists_url":"https://api.github.com/users/yanashulgina93/gists{/gist_id}","starred_url":"https://api.github.com/users/yanashulgina93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanashulgina93/subscriptions","organizations_url":"https://api.github.com/users/yanashulgina93/orgs","repos_url":"https://api.github.com/users/yanashulgina93/repos","events_url":"https://api.github.com/users/yanashulgina93/events{/privacy}","received_events_url":"https://api.github.com/users/yanashulgina93/received_events","type":"User","site_admin":false},"repo":{"id":63339835,"name":"labs","full_name":"yanashulgina93/labs","owner":{"login":"yanashulgina93","id":12113564,"avatar_url":"https://avatars.githubusercontent.com/u/12113564?v=3","gravatar_id":"","url":"https://api.github.com/users/yanashulgina93","html_url":"https://github.com/yanashulgina93","followers_url":"https://api.github.com/users/yanashulgina93/followers","following_url":"https://api.github.com/users/yanashulgina93/following{/other_user}","gists_url":"https://api.github.com/users/yanashulgina93/gists{/gist_id}","starred_url":"https://api.github.com/users/yanashulgina93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanashulgina93/subscriptions","organizations_url":"https://api.github.com/users/yanashulgina93/orgs","repos_url":"https://api.github.com/users/yanashulgina93/repos","events_url":"https://api.github.com/users/yanashulgina93/events{/privacy}","received_events_url":"https://api.github.com/users/yanashulgina93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yanashulgina93/labs","description":null,"fork":false,"url":"https://api.github.com/repos/yanashulgina93/labs","forks_url":"https://api.github.com/repos/yanashulgina93/labs/forks","keys_url":"https://api.github.com/repos/yanashulgina93/labs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yanashulgina93/labs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yanashulgina93/labs/teams","hooks_url":"https://api.github.com/repos/yanashulgina93/labs/hooks","issue_events_url":"https://api.github.com/repos/yanashulgina93/labs/issues/events{/number}","events_url":"https://api.github.com/repos/yanashulgina93/labs/events","assignees_url":"https://api.github.com/repos/yanashulgina93/labs/assignees{/user}","branches_url":"https://api.github.com/repos/yanashulgina93/labs/branches{/branch}","tags_url":"https://api.github.com/repos/yanashulgina93/labs/tags","blobs_url":"https://api.github.com/repos/yanashulgina93/labs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yanashulgina93/labs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yanashulgina93/labs/git/refs{/sha}","trees_url":"https://api.github.com/repos/yanashulgina93/labs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yanashulgina93/labs/statuses/{sha}","languages_url":"https://api.github.com/repos/yanashulgina93/labs/languages","stargazers_url":"https://api.github.com/repos/yanashulgina93/labs/stargazers","contributors_url":"https://api.github.com/repos/yanashulgina93/labs/contributors","subscribers_url":"https://api.github.com/repos/yanashulgina93/labs/subscribers","subscription_url":"https://api.github.com/repos/yanashulgina93/labs/subscription","commits_url":"https://api.github.com/repos/yanashulgina93/labs/commits{/sha}","git_commits_url":"https://api.github.com/repos/yanashulgina93/labs/git/commits{/sha}","comments_url":"https://api.github.com/repos/yanashulgina93/labs/comments{/number}","issue_comment_url":"https://api.github.com/repos/yanashulgina93/labs/issues/comments{/number}","contents_url":"https://api.github.com/repos/yanashulgina93/labs/contents/{+path}","compare_url":"https://api.github.com/repos/yanashulgina93/labs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yanashulgina93/labs/merges","archive_url":"https://api.github.com/repos/yanashulgina93/labs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yanashulgina93/labs/downloads","issues_url":"https://api.github.com/repos/yanashulgina93/labs/issues{/number}","pulls_url":"https://api.github.com/repos/yanashulgina93/labs/pulls{/number}","milestones_url":"https://api.github.com/repos/yanashulgina93/labs/milestones{/number}","notifications_url":"https://api.github.com/repos/yanashulgina93/labs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yanashulgina93/labs/labels{/name}","releases_url":"https://api.github.com/repos/yanashulgina93/labs/releases{/id}","deployments_url":"https://api.github.com/repos/yanashulgina93/labs/deployments","created_at":"2016-07-14T13:41:04Z","updated_at":"2016-07-14T13:48:12Z","pushed_at":"2016-07-14T14:21:01Z","git_url":"git://github.com/yanashulgina93/labs.git","ssh_url":"git@github.com:yanashulgina93/labs.git","clone_url":"https://github.com/yanashulgina93/labs.git","svn_url":"https://github.com/yanashulgina93/labs","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yanashulgina93/labs/pulls/1"},"html":{"href":"https://github.com/yanashulgina93/labs/pull/1"},"issue":{"href":"https://api.github.com/repos/yanashulgina93/labs/issues/1"},"comments":{"href":"https://api.github.com/repos/yanashulgina93/labs/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/yanashulgina93/labs/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/yanashulgina93/labs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yanashulgina93/labs/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/yanashulgina93/labs/statuses/2106bc562802d8d5e8a19e90964c8e199206a214"}}}}
{"actor":{"display_login":"KonstantinMatskevich"}}