{"action":"created","comment":{"url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls/comments/69720721","id":69720721,"diff_hunk":"@@ -0,0 +1,101 @@\n+#include <iostream>\n+#include <string>\n+\n+#include \"opencv2/core.hpp\"\n+#include \"image_processing.hpp\"\n+\n+using namespace std;\n+\n+const char* kAbout = \"Image processing sample.\";\n+\n+const char* kOptions =\n+\t\"{ @image         | <none> | image to process            }\"\n+\t\"{ gray           |        | convert ROI to gray scale   }\"\n+\t\"{ median         |        | apply median filter for ROI }\"\n+\t\"{ edges          |        | detect edges in ROI         }\"\n+\t\"{ pix            |        | pixelize ROI                }\"\n+    \"{ h ? help usage |        | print help message          }\";\n+struct MouseCallbackState {\n+\tbool isSelectionStarted;\n+\tbool isSelectionFinished;\n+\tcv::Point pointFirst;\n+\tcv::Point pointSecond;\n+\n+\tMouseCallbackState(void) : isSelectionStarted(false), isSelectionFinished(false) {}\n+};\n+static void onMouse(int op, int x, int y, int, void* m) {\n+\tMouseCallbackState* mt = (MouseCallbackState*)m;\n+\tswitch (op) {\n+\tcase cv::EVENT_LBUTTONDOWN:\n+\t\tmt->isSelectionStarted = true;\n+\t\tmt->isSelectionFinished = false;\n+\t\tmt->pointFirst = cv::Point(x, y);\n+\t\tbreak;\n+\tcase cv::EVENT_LBUTTONUP:\n+\t\tmt->isSelectionStarted = false;\n+\t\tmt->isSelectionFinished = true;\n+\t\tmt->pointSecond = cv::Point(x, y);\n+\t\tbreak;\n+\tcase cv::EVENT_MOUSEMOVE:\n+\t\tif (mt->isSelectionFinished == false)","path":"samples/imgproc_demo.cpp","position":40,"original_position":40,"commit_id":"50987e97405e917fdca29c3936f567859b10156b","original_commit_id":"363a0132c6799a5a4cdd1646d1d1f180d6dac1ca","user":{"login":"valentina-kustikova","id":6958019,"avatar_url":"https://avatars.githubusercontent.com/u/6958019?v=3","gravatar_id":"","url":"https://api.github.com/users/valentina-kustikova","html_url":"https://github.com/valentina-kustikova","followers_url":"https://api.github.com/users/valentina-kustikova/followers","following_url":"https://api.github.com/users/valentina-kustikova/following{/other_user}","gists_url":"https://api.github.com/users/valentina-kustikova/gists{/gist_id}","starred_url":"https://api.github.com/users/valentina-kustikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentina-kustikova/subscriptions","organizations_url":"https://api.github.com/users/valentina-kustikova/orgs","repos_url":"https://api.github.com/users/valentina-kustikova/repos","events_url":"https://api.github.com/users/valentina-kustikova/events{/privacy}","received_events_url":"https://api.github.com/users/valentina-kustikova/received_events","type":"User","site_admin":false},"body":"Здесь должно быть выполнено одновременно два условия, приведенные ниже.\r\n```cpp\r\nif (mt->isSelectionStarted && !mt->isSelectionFinished)\r\n{\r\n  mt->pointSecond = cv::Point(x, y);\r\n}\r\n```","created_at":"2016-07-06T12:29:07Z","updated_at":"2016-07-06T12:29:07Z","html_url":"https://github.com/itseez-academy/itseez-ss-2016-practice/pull/26#discussion_r69720721","pull_request_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls/comments/69720721"},"html":{"href":"https://github.com/itseez-academy/itseez-ss-2016-practice/pull/26#discussion_r69720721"},"pull_request":{"href":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls/26","id":76286289,"html_url":"https://github.com/itseez-academy/itseez-ss-2016-practice/pull/26","diff_url":"https://github.com/itseez-academy/itseez-ss-2016-practice/pull/26.diff","patch_url":"https://github.com/itseez-academy/itseez-ss-2016-practice/pull/26.patch","issue_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/issues/26","number":26,"state":"open","locked":false,"title":"practice-1, 2","user":{"login":"Alexander-Khlybov","id":14946874,"avatar_url":"https://avatars.githubusercontent.com/u/14946874?v=3","gravatar_id":"","url":"https://api.github.com/users/Alexander-Khlybov","html_url":"https://github.com/Alexander-Khlybov","followers_url":"https://api.github.com/users/Alexander-Khlybov/followers","following_url":"https://api.github.com/users/Alexander-Khlybov/following{/other_user}","gists_url":"https://api.github.com/users/Alexander-Khlybov/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexander-Khlybov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexander-Khlybov/subscriptions","organizations_url":"https://api.github.com/users/Alexander-Khlybov/orgs","repos_url":"https://api.github.com/users/Alexander-Khlybov/repos","events_url":"https://api.github.com/users/Alexander-Khlybov/events{/privacy}","received_events_url":"https://api.github.com/users/Alexander-Khlybov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-05T14:43:08Z","updated_at":"2016-07-06T12:29:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b2fb01e22f58d7d7a541aa06ab670c949732f69","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls/26/commits","review_comments_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls/26/comments","review_comment_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/issues/26/comments","statuses_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/statuses/50987e97405e917fdca29c3936f567859b10156b","head":{"label":"Alexander-Khlybov:master","ref":"master","sha":"50987e97405e917fdca29c3936f567859b10156b","user":{"login":"Alexander-Khlybov","id":14946874,"avatar_url":"https://avatars.githubusercontent.com/u/14946874?v=3","gravatar_id":"","url":"https://api.github.com/users/Alexander-Khlybov","html_url":"https://github.com/Alexander-Khlybov","followers_url":"https://api.github.com/users/Alexander-Khlybov/followers","following_url":"https://api.github.com/users/Alexander-Khlybov/following{/other_user}","gists_url":"https://api.github.com/users/Alexander-Khlybov/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexander-Khlybov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexander-Khlybov/subscriptions","organizations_url":"https://api.github.com/users/Alexander-Khlybov/orgs","repos_url":"https://api.github.com/users/Alexander-Khlybov/repos","events_url":"https://api.github.com/users/Alexander-Khlybov/events{/privacy}","received_events_url":"https://api.github.com/users/Alexander-Khlybov/received_events","type":"User","site_admin":false},"repo":{"id":62551290,"name":"itseez-ss-2016-practice","full_name":"Alexander-Khlybov/itseez-ss-2016-practice","owner":{"login":"Alexander-Khlybov","id":14946874,"avatar_url":"https://avatars.githubusercontent.com/u/14946874?v=3","gravatar_id":"","url":"https://api.github.com/users/Alexander-Khlybov","html_url":"https://github.com/Alexander-Khlybov","followers_url":"https://api.github.com/users/Alexander-Khlybov/followers","following_url":"https://api.github.com/users/Alexander-Khlybov/following{/other_user}","gists_url":"https://api.github.com/users/Alexander-Khlybov/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexander-Khlybov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexander-Khlybov/subscriptions","organizations_url":"https://api.github.com/users/Alexander-Khlybov/orgs","repos_url":"https://api.github.com/users/Alexander-Khlybov/repos","events_url":"https://api.github.com/users/Alexander-Khlybov/events{/privacy}","received_events_url":"https://api.github.com/users/Alexander-Khlybov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Alexander-Khlybov/itseez-ss-2016-practice","description":null,"fork":true,"url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice","forks_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/forks","keys_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/teams","hooks_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/hooks","issue_events_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/issues/events{/number}","events_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/events","assignees_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/assignees{/user}","branches_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/branches{/branch}","tags_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/tags","blobs_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/languages","stargazers_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/stargazers","contributors_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/contributors","subscribers_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/subscribers","subscription_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/subscription","commits_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/contents/{+path}","compare_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/merges","archive_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/downloads","issues_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/issues{/number}","pulls_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/labels{/name}","releases_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/releases{/id}","deployments_url":"https://api.github.com/repos/Alexander-Khlybov/itseez-ss-2016-practice/deployments","created_at":"2016-07-04T09:49:38Z","updated_at":"2016-07-05T14:30:27Z","pushed_at":"2016-07-06T11:52:05Z","git_url":"git://github.com/Alexander-Khlybov/itseez-ss-2016-practice.git","ssh_url":"git@github.com:Alexander-Khlybov/itseez-ss-2016-practice.git","clone_url":"https://github.com/Alexander-Khlybov/itseez-ss-2016-practice.git","svn_url":"https://github.com/Alexander-Khlybov/itseez-ss-2016-practice","homepage":null,"size":40395,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"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":"itseez-academy:master","ref":"master","sha":"f36896b74b9637268078b9db877bbd23a485fb55","user":{"login":"itseez-academy","id":16984953,"avatar_url":"https://avatars.githubusercontent.com/u/16984953?v=3","gravatar_id":"","url":"https://api.github.com/users/itseez-academy","html_url":"https://github.com/itseez-academy","followers_url":"https://api.github.com/users/itseez-academy/followers","following_url":"https://api.github.com/users/itseez-academy/following{/other_user}","gists_url":"https://api.github.com/users/itseez-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/itseez-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itseez-academy/subscriptions","organizations_url":"https://api.github.com/users/itseez-academy/orgs","repos_url":"https://api.github.com/users/itseez-academy/repos","events_url":"https://api.github.com/users/itseez-academy/events{/privacy}","received_events_url":"https://api.github.com/users/itseez-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":62197371,"name":"itseez-ss-2016-practice","full_name":"itseez-academy/itseez-ss-2016-practice","owner":{"login":"itseez-academy","id":16984953,"avatar_url":"https://avatars.githubusercontent.com/u/16984953?v=3","gravatar_id":"","url":"https://api.github.com/users/itseez-academy","html_url":"https://github.com/itseez-academy","followers_url":"https://api.github.com/users/itseez-academy/followers","following_url":"https://api.github.com/users/itseez-academy/following{/other_user}","gists_url":"https://api.github.com/users/itseez-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/itseez-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itseez-academy/subscriptions","organizations_url":"https://api.github.com/users/itseez-academy/orgs","repos_url":"https://api.github.com/users/itseez-academy/repos","events_url":"https://api.github.com/users/itseez-academy/events{/privacy}","received_events_url":"https://api.github.com/users/itseez-academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/itseez-academy/itseez-ss-2016-practice","description":null,"fork":false,"url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice","forks_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/forks","keys_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/teams","hooks_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/hooks","issue_events_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/issues/events{/number}","events_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/events","assignees_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/assignees{/user}","branches_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/branches{/branch}","tags_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/tags","blobs_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/languages","stargazers_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/stargazers","contributors_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/contributors","subscribers_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/subscribers","subscription_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/subscription","commits_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/contents/{+path}","compare_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/merges","archive_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/downloads","issues_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/issues{/number}","pulls_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/labels{/name}","releases_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/releases{/id}","deployments_url":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/deployments","created_at":"2016-06-29T05:12:31Z","updated_at":"2016-07-06T06:05:31Z","pushed_at":"2016-07-06T12:12:06Z","git_url":"git://github.com/itseez-academy/itseez-ss-2016-practice.git","ssh_url":"git@github.com:itseez-academy/itseez-ss-2016-practice.git","clone_url":"https://github.com/itseez-academy/itseez-ss-2016-practice.git","svn_url":"https://github.com/itseez-academy/itseez-ss-2016-practice","homepage":null,"size":62367,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":33,"forks":33,"open_issues":33,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls/26"},"html":{"href":"https://github.com/itseez-academy/itseez-ss-2016-practice/pull/26"},"issue":{"href":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/issues/26"},"comments":{"href":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/itseez-academy/itseez-ss-2016-practice/statuses/50987e97405e917fdca29c3936f567859b10156b"}}}}
{"actor":{"display_login":"valentina-kustikova"}}