{"action":"created","comment":{"url":"https://api.github.com/repos/zhukovsky/students_research/pulls/comments/53376786","id":53376786,"diff_hunk":"@@ -0,0 +1,117 @@\n+#include <opencv2/core/core.hpp>\n+#include <opencv2/highgui.hpp>\n+#include <opencv2/imgproc/imgproc.hpp>\n+#include <string>\n+#include <vector>\n+#include <fstream>\n+#include <iostream>\n+\n+using namespace cv;\n+using namespace std;\n+\n+bool image_equals(const Mat& image1, const Mat& image2) {\n+    if (image1.cols == image2.cols && image1.rows == image2.rows) {\n+        for (int i = 0; i < image1.rows; ++i) {\n+            for (int j = 0; j < image1.cols; ++j) {\n+                if (image1.at<uchar>(i,j) != image1.at<uchar>(i,j)) {\n+                    return 0;\n+                }\n+            }\n+        }\n+    } else {\n+        return 0;\n+    }\n+    return 1;\n+}\n+\n+Mat binarize(Mat& image, const int board) {","path":"otsu_cq/main.cpp","position":27,"original_position":27,"commit_id":"0e1797d7019f3cfd4d0ad5df673bb79a4f6b87b4","original_commit_id":"0e1797d7019f3cfd4d0ad5df673bb79a4f6b87b4","user":{"login":"zhukovsky","id":647307,"avatar_url":"https://avatars.githubusercontent.com/u/647307?v=3","gravatar_id":"","url":"https://api.github.com/users/zhukovsky","html_url":"https://github.com/zhukovsky","followers_url":"https://api.github.com/users/zhukovsky/followers","following_url":"https://api.github.com/users/zhukovsky/following{/other_user}","gists_url":"https://api.github.com/users/zhukovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/zhukovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhukovsky/subscriptions","organizations_url":"https://api.github.com/users/zhukovsky/orgs","repos_url":"https://api.github.com/users/zhukovsky/repos","events_url":"https://api.github.com/users/zhukovsky/events{/privacy}","received_events_url":"https://api.github.com/users/zhukovsky/received_events","type":"User","site_admin":false},"body":"Опять же, нужна векторная реализация","created_at":"2016-02-18T20:23:38Z","updated_at":"2016-02-18T20:23:38Z","html_url":"https://github.com/zhukovsky/students_research/pull/1#discussion_r53376786","pull_request_url":"https://api.github.com/repos/zhukovsky/students_research/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/zhukovsky/students_research/pulls/comments/53376786"},"html":{"href":"https://github.com/zhukovsky/students_research/pull/1#discussion_r53376786"},"pull_request":{"href":"https://api.github.com/repos/zhukovsky/students_research/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/zhukovsky/students_research/pulls/1","id":59785181,"html_url":"https://github.com/zhukovsky/students_research/pull/1","diff_url":"https://github.com/zhukovsky/students_research/pull/1.diff","patch_url":"https://github.com/zhukovsky/students_research/pull/1.patch","issue_url":"https://api.github.com/repos/zhukovsky/students_research/issues/1","number":1,"state":"open","locked":false,"title":"Замерджил CMake и сам алгоритм","user":{"login":"MaximGotovchits","id":8759433,"avatar_url":"https://avatars.githubusercontent.com/u/8759433?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximGotovchits","html_url":"https://github.com/MaximGotovchits","followers_url":"https://api.github.com/users/MaximGotovchits/followers","following_url":"https://api.github.com/users/MaximGotovchits/following{/other_user}","gists_url":"https://api.github.com/users/MaximGotovchits/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximGotovchits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximGotovchits/subscriptions","organizations_url":"https://api.github.com/users/MaximGotovchits/orgs","repos_url":"https://api.github.com/users/MaximGotovchits/repos","events_url":"https://api.github.com/users/MaximGotovchits/events{/privacy}","received_events_url":"https://api.github.com/users/MaximGotovchits/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-18T11:26:51Z","updated_at":"2016-02-18T20:23:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0fa85ba7026c9833bc3ad4de20ddbc578df59df","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zhukovsky/students_research/pulls/1/commits","review_comments_url":"https://api.github.com/repos/zhukovsky/students_research/pulls/1/comments","review_comment_url":"https://api.github.com/repos/zhukovsky/students_research/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zhukovsky/students_research/issues/1/comments","statuses_url":"https://api.github.com/repos/zhukovsky/students_research/statuses/0e1797d7019f3cfd4d0ad5df673bb79a4f6b87b4","head":{"label":"MaximGotovchits:master","ref":"master","sha":"0e1797d7019f3cfd4d0ad5df673bb79a4f6b87b4","user":{"login":"MaximGotovchits","id":8759433,"avatar_url":"https://avatars.githubusercontent.com/u/8759433?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximGotovchits","html_url":"https://github.com/MaximGotovchits","followers_url":"https://api.github.com/users/MaximGotovchits/followers","following_url":"https://api.github.com/users/MaximGotovchits/following{/other_user}","gists_url":"https://api.github.com/users/MaximGotovchits/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximGotovchits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximGotovchits/subscriptions","organizations_url":"https://api.github.com/users/MaximGotovchits/orgs","repos_url":"https://api.github.com/users/MaximGotovchits/repos","events_url":"https://api.github.com/users/MaximGotovchits/events{/privacy}","received_events_url":"https://api.github.com/users/MaximGotovchits/received_events","type":"User","site_admin":false},"repo":{"id":51873290,"name":"students_research","full_name":"MaximGotovchits/students_research","owner":{"login":"MaximGotovchits","id":8759433,"avatar_url":"https://avatars.githubusercontent.com/u/8759433?v=3","gravatar_id":"","url":"https://api.github.com/users/MaximGotovchits","html_url":"https://github.com/MaximGotovchits","followers_url":"https://api.github.com/users/MaximGotovchits/followers","following_url":"https://api.github.com/users/MaximGotovchits/following{/other_user}","gists_url":"https://api.github.com/users/MaximGotovchits/gists{/gist_id}","starred_url":"https://api.github.com/users/MaximGotovchits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaximGotovchits/subscriptions","organizations_url":"https://api.github.com/users/MaximGotovchits/orgs","repos_url":"https://api.github.com/users/MaximGotovchits/repos","events_url":"https://api.github.com/users/MaximGotovchits/events{/privacy}","received_events_url":"https://api.github.com/users/MaximGotovchits/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MaximGotovchits/students_research","description":"Repo for 3rd-year bachelors' research","fork":true,"url":"https://api.github.com/repos/MaximGotovchits/students_research","forks_url":"https://api.github.com/repos/MaximGotovchits/students_research/forks","keys_url":"https://api.github.com/repos/MaximGotovchits/students_research/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaximGotovchits/students_research/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaximGotovchits/students_research/teams","hooks_url":"https://api.github.com/repos/MaximGotovchits/students_research/hooks","issue_events_url":"https://api.github.com/repos/MaximGotovchits/students_research/issues/events{/number}","events_url":"https://api.github.com/repos/MaximGotovchits/students_research/events","assignees_url":"https://api.github.com/repos/MaximGotovchits/students_research/assignees{/user}","branches_url":"https://api.github.com/repos/MaximGotovchits/students_research/branches{/branch}","tags_url":"https://api.github.com/repos/MaximGotovchits/students_research/tags","blobs_url":"https://api.github.com/repos/MaximGotovchits/students_research/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaximGotovchits/students_research/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaximGotovchits/students_research/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaximGotovchits/students_research/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaximGotovchits/students_research/statuses/{sha}","languages_url":"https://api.github.com/repos/MaximGotovchits/students_research/languages","stargazers_url":"https://api.github.com/repos/MaximGotovchits/students_research/stargazers","contributors_url":"https://api.github.com/repos/MaximGotovchits/students_research/contributors","subscribers_url":"https://api.github.com/repos/MaximGotovchits/students_research/subscribers","subscription_url":"https://api.github.com/repos/MaximGotovchits/students_research/subscription","commits_url":"https://api.github.com/repos/MaximGotovchits/students_research/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaximGotovchits/students_research/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaximGotovchits/students_research/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaximGotovchits/students_research/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaximGotovchits/students_research/contents/{+path}","compare_url":"https://api.github.com/repos/MaximGotovchits/students_research/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaximGotovchits/students_research/merges","archive_url":"https://api.github.com/repos/MaximGotovchits/students_research/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaximGotovchits/students_research/downloads","issues_url":"https://api.github.com/repos/MaximGotovchits/students_research/issues{/number}","pulls_url":"https://api.github.com/repos/MaximGotovchits/students_research/pulls{/number}","milestones_url":"https://api.github.com/repos/MaximGotovchits/students_research/milestones{/number}","notifications_url":"https://api.github.com/repos/MaximGotovchits/students_research/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaximGotovchits/students_research/labels{/name}","releases_url":"https://api.github.com/repos/MaximGotovchits/students_research/releases{/id}","deployments_url":"https://api.github.com/repos/MaximGotovchits/students_research/deployments","created_at":"2016-02-16T21:54:49Z","updated_at":"2016-02-16T21:54:50Z","pushed_at":"2016-02-18T12:19:36Z","git_url":"git://github.com/MaximGotovchits/students_research.git","ssh_url":"git@github.com:MaximGotovchits/students_research.git","clone_url":"https://github.com/MaximGotovchits/students_research.git","svn_url":"https://github.com/MaximGotovchits/students_research","homepage":"","size":10,"stargazers_count":0,"watchers_count":0,"language":"CMake","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":"zhukovsky:master","ref":"master","sha":"077e742028c31bc40233a497733afd7d470b0d6b","user":{"login":"zhukovsky","id":647307,"avatar_url":"https://avatars.githubusercontent.com/u/647307?v=3","gravatar_id":"","url":"https://api.github.com/users/zhukovsky","html_url":"https://github.com/zhukovsky","followers_url":"https://api.github.com/users/zhukovsky/followers","following_url":"https://api.github.com/users/zhukovsky/following{/other_user}","gists_url":"https://api.github.com/users/zhukovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/zhukovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhukovsky/subscriptions","organizations_url":"https://api.github.com/users/zhukovsky/orgs","repos_url":"https://api.github.com/users/zhukovsky/repos","events_url":"https://api.github.com/users/zhukovsky/events{/privacy}","received_events_url":"https://api.github.com/users/zhukovsky/received_events","type":"User","site_admin":false},"repo":{"id":51709491,"name":"students_research","full_name":"zhukovsky/students_research","owner":{"login":"zhukovsky","id":647307,"avatar_url":"https://avatars.githubusercontent.com/u/647307?v=3","gravatar_id":"","url":"https://api.github.com/users/zhukovsky","html_url":"https://github.com/zhukovsky","followers_url":"https://api.github.com/users/zhukovsky/followers","following_url":"https://api.github.com/users/zhukovsky/following{/other_user}","gists_url":"https://api.github.com/users/zhukovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/zhukovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhukovsky/subscriptions","organizations_url":"https://api.github.com/users/zhukovsky/orgs","repos_url":"https://api.github.com/users/zhukovsky/repos","events_url":"https://api.github.com/users/zhukovsky/events{/privacy}","received_events_url":"https://api.github.com/users/zhukovsky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhukovsky/students_research","description":"Repo for 3rd-year bachelors' research","fork":false,"url":"https://api.github.com/repos/zhukovsky/students_research","forks_url":"https://api.github.com/repos/zhukovsky/students_research/forks","keys_url":"https://api.github.com/repos/zhukovsky/students_research/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhukovsky/students_research/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhukovsky/students_research/teams","hooks_url":"https://api.github.com/repos/zhukovsky/students_research/hooks","issue_events_url":"https://api.github.com/repos/zhukovsky/students_research/issues/events{/number}","events_url":"https://api.github.com/repos/zhukovsky/students_research/events","assignees_url":"https://api.github.com/repos/zhukovsky/students_research/assignees{/user}","branches_url":"https://api.github.com/repos/zhukovsky/students_research/branches{/branch}","tags_url":"https://api.github.com/repos/zhukovsky/students_research/tags","blobs_url":"https://api.github.com/repos/zhukovsky/students_research/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhukovsky/students_research/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhukovsky/students_research/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhukovsky/students_research/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhukovsky/students_research/statuses/{sha}","languages_url":"https://api.github.com/repos/zhukovsky/students_research/languages","stargazers_url":"https://api.github.com/repos/zhukovsky/students_research/stargazers","contributors_url":"https://api.github.com/repos/zhukovsky/students_research/contributors","subscribers_url":"https://api.github.com/repos/zhukovsky/students_research/subscribers","subscription_url":"https://api.github.com/repos/zhukovsky/students_research/subscription","commits_url":"https://api.github.com/repos/zhukovsky/students_research/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhukovsky/students_research/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhukovsky/students_research/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhukovsky/students_research/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhukovsky/students_research/contents/{+path}","compare_url":"https://api.github.com/repos/zhukovsky/students_research/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhukovsky/students_research/merges","archive_url":"https://api.github.com/repos/zhukovsky/students_research/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhukovsky/students_research/downloads","issues_url":"https://api.github.com/repos/zhukovsky/students_research/issues{/number}","pulls_url":"https://api.github.com/repos/zhukovsky/students_research/pulls{/number}","milestones_url":"https://api.github.com/repos/zhukovsky/students_research/milestones{/number}","notifications_url":"https://api.github.com/repos/zhukovsky/students_research/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhukovsky/students_research/labels{/name}","releases_url":"https://api.github.com/repos/zhukovsky/students_research/releases{/id}","deployments_url":"https://api.github.com/repos/zhukovsky/students_research/deployments","created_at":"2016-02-14T19:24:11Z","updated_at":"2016-02-16T19:19:15Z","pushed_at":"2016-02-18T12:19:37Z","git_url":"git://github.com/zhukovsky/students_research.git","ssh_url":"git@github.com:zhukovsky/students_research.git","clone_url":"https://github.com/zhukovsky/students_research.git","svn_url":"https://github.com/zhukovsky/students_research","homepage":"","size":7,"stargazers_count":0,"watchers_count":0,"language":"CMake","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zhukovsky/students_research/pulls/1"},"html":{"href":"https://github.com/zhukovsky/students_research/pull/1"},"issue":{"href":"https://api.github.com/repos/zhukovsky/students_research/issues/1"},"comments":{"href":"https://api.github.com/repos/zhukovsky/students_research/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/zhukovsky/students_research/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/zhukovsky/students_research/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zhukovsky/students_research/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/zhukovsky/students_research/statuses/0e1797d7019f3cfd4d0ad5df673bb79a4f6b87b4"}}}}