{"action":"created","comment":{"url":"https://api.github.com/repos/yosefm/openptv/pulls/comments/68502407","id":68502407,"diff_hunk":"@@ -0,0 +1,61 @@\n+from optv.parameters cimport ControlParams, control_par\n+import numpy as np\n+from twisted.cred import error\n+cimport numpy as np\n+\n+def preprocess_image(np.ndarray[ndim=2, dtype=np.uint8_t] input,\n+                   int filter_hp,\n+                   ControlParams control,\n+                   int lowpass_dim=0,\n+                   filter_file=None,\n+                   np.ndarray[ndim=2, dtype=np.uint8_t] output=None):\n+    '''\n+    preprocess_image() - perform the steps necessary for preparing an image to \n+    particle detection: an averaging (smoothing) filter on an image, optionally\n+    followed by additional user-defined filter.\n+    \n+    Arguments:\n+    numpy.ndarray input - numpy 2d array representing the source image to filter.\n+    int filter_hp - flag for additional filtering of _hp. 1 for lowpass, 2 for \n+        general 3x3 filter given in parameter ``filter_file``.\n+    ControlParams control - image details such as size and image half for \n+    interlaced cases.\n+    int lowpass_dim - dimension of subtracted lowpass image.","path":"py_bind/optv/image_processing.pyx","position":22,"original_position":23,"commit_id":"61d4f9695261a56926f1eced65654f1ba65f3daf","original_commit_id":"485c08c8ca1304abb27d76eaa52955c1891a05bc","user":{"login":"yosefm","id":75150,"avatar_url":"https://avatars.githubusercontent.com/u/75150?v=3","gravatar_id":"","url":"https://api.github.com/users/yosefm","html_url":"https://github.com/yosefm","followers_url":"https://api.github.com/users/yosefm/followers","following_url":"https://api.github.com/users/yosefm/following{/other_user}","gists_url":"https://api.github.com/users/yosefm/gists{/gist_id}","starred_url":"https://api.github.com/users/yosefm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosefm/subscriptions","organizations_url":"https://api.github.com/users/yosefm/orgs","repos_url":"https://api.github.com/users/yosefm/repos","events_url":"https://api.github.com/users/yosefm/events{/privacy}","received_events_url":"https://api.github.com/users/yosefm/received_events","type":"User","site_admin":false},"body":"The mistake is in the C documentation, as I told you when we discussed it in my office - remember the part about how filters work?\r\nAnyway, I fixed it in the upstream PR, just FYI.","created_at":"2016-06-26T12:37:07Z","updated_at":"2016-06-26T12:37:07Z","html_url":"https://github.com/yosefm/openptv/pull/25#discussion_r68502407","pull_request_url":"https://api.github.com/repos/yosefm/openptv/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/yosefm/openptv/pulls/comments/68502407"},"html":{"href":"https://github.com/yosefm/openptv/pull/25#discussion_r68502407"},"pull_request":{"href":"https://api.github.com/repos/yosefm/openptv/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/yosefm/openptv/pulls/25","id":74604245,"html_url":"https://github.com/yosefm/openptv/pull/25","diff_url":"https://github.com/yosefm/openptv/pull/25.diff","patch_url":"https://github.com/yosefm/openptv/pull/25.patch","issue_url":"https://api.github.com/repos/yosefm/openptv/issues/25","number":25,"state":"open","locked":false,"title":"image preprocessing bindings and tests","user":{"login":"segalmax","id":10219663,"avatar_url":"https://avatars.githubusercontent.com/u/10219663?v=3","gravatar_id":"","url":"https://api.github.com/users/segalmax","html_url":"https://github.com/segalmax","followers_url":"https://api.github.com/users/segalmax/followers","following_url":"https://api.github.com/users/segalmax/following{/other_user}","gists_url":"https://api.github.com/users/segalmax/gists{/gist_id}","starred_url":"https://api.github.com/users/segalmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segalmax/subscriptions","organizations_url":"https://api.github.com/users/segalmax/orgs","repos_url":"https://api.github.com/users/segalmax/repos","events_url":"https://api.github.com/users/segalmax/events{/privacy}","received_events_url":"https://api.github.com/users/segalmax/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-21T12:41:11Z","updated_at":"2016-06-26T12:37:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/yosefm/openptv/pulls/25/commits","review_comments_url":"https://api.github.com/repos/yosefm/openptv/pulls/25/comments","review_comment_url":"https://api.github.com/repos/yosefm/openptv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yosefm/openptv/issues/25/comments","statuses_url":"https://api.github.com/repos/yosefm/openptv/statuses/61d4f9695261a56926f1eced65654f1ba65f3daf","head":{"label":"segalmax:prepare_image_b","ref":"prepare_image_b","sha":"61d4f9695261a56926f1eced65654f1ba65f3daf","user":{"login":"segalmax","id":10219663,"avatar_url":"https://avatars.githubusercontent.com/u/10219663?v=3","gravatar_id":"","url":"https://api.github.com/users/segalmax","html_url":"https://github.com/segalmax","followers_url":"https://api.github.com/users/segalmax/followers","following_url":"https://api.github.com/users/segalmax/following{/other_user}","gists_url":"https://api.github.com/users/segalmax/gists{/gist_id}","starred_url":"https://api.github.com/users/segalmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segalmax/subscriptions","organizations_url":"https://api.github.com/users/segalmax/orgs","repos_url":"https://api.github.com/users/segalmax/repos","events_url":"https://api.github.com/users/segalmax/events{/privacy}","received_events_url":"https://api.github.com/users/segalmax/received_events","type":"User","site_admin":false},"repo":{"id":28487359,"name":"openptv","full_name":"segalmax/openptv","owner":{"login":"segalmax","id":10219663,"avatar_url":"https://avatars.githubusercontent.com/u/10219663?v=3","gravatar_id":"","url":"https://api.github.com/users/segalmax","html_url":"https://github.com/segalmax","followers_url":"https://api.github.com/users/segalmax/followers","following_url":"https://api.github.com/users/segalmax/following{/other_user}","gists_url":"https://api.github.com/users/segalmax/gists{/gist_id}","starred_url":"https://api.github.com/users/segalmax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/segalmax/subscriptions","organizations_url":"https://api.github.com/users/segalmax/orgs","repos_url":"https://api.github.com/users/segalmax/repos","events_url":"https://api.github.com/users/segalmax/events{/privacy}","received_events_url":"https://api.github.com/users/segalmax/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/segalmax/openptv","description":"This is our central repository, holding only the community approved code and documentation","fork":true,"url":"https://api.github.com/repos/segalmax/openptv","forks_url":"https://api.github.com/repos/segalmax/openptv/forks","keys_url":"https://api.github.com/repos/segalmax/openptv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/segalmax/openptv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/segalmax/openptv/teams","hooks_url":"https://api.github.com/repos/segalmax/openptv/hooks","issue_events_url":"https://api.github.com/repos/segalmax/openptv/issues/events{/number}","events_url":"https://api.github.com/repos/segalmax/openptv/events","assignees_url":"https://api.github.com/repos/segalmax/openptv/assignees{/user}","branches_url":"https://api.github.com/repos/segalmax/openptv/branches{/branch}","tags_url":"https://api.github.com/repos/segalmax/openptv/tags","blobs_url":"https://api.github.com/repos/segalmax/openptv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/segalmax/openptv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/segalmax/openptv/git/refs{/sha}","trees_url":"https://api.github.com/repos/segalmax/openptv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/segalmax/openptv/statuses/{sha}","languages_url":"https://api.github.com/repos/segalmax/openptv/languages","stargazers_url":"https://api.github.com/repos/segalmax/openptv/stargazers","contributors_url":"https://api.github.com/repos/segalmax/openptv/contributors","subscribers_url":"https://api.github.com/repos/segalmax/openptv/subscribers","subscription_url":"https://api.github.com/repos/segalmax/openptv/subscription","commits_url":"https://api.github.com/repos/segalmax/openptv/commits{/sha}","git_commits_url":"https://api.github.com/repos/segalmax/openptv/git/commits{/sha}","comments_url":"https://api.github.com/repos/segalmax/openptv/comments{/number}","issue_comment_url":"https://api.github.com/repos/segalmax/openptv/issues/comments{/number}","contents_url":"https://api.github.com/repos/segalmax/openptv/contents/{+path}","compare_url":"https://api.github.com/repos/segalmax/openptv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/segalmax/openptv/merges","archive_url":"https://api.github.com/repos/segalmax/openptv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/segalmax/openptv/downloads","issues_url":"https://api.github.com/repos/segalmax/openptv/issues{/number}","pulls_url":"https://api.github.com/repos/segalmax/openptv/pulls{/number}","milestones_url":"https://api.github.com/repos/segalmax/openptv/milestones{/number}","notifications_url":"https://api.github.com/repos/segalmax/openptv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/segalmax/openptv/labels{/name}","releases_url":"https://api.github.com/repos/segalmax/openptv/releases{/id}","deployments_url":"https://api.github.com/repos/segalmax/openptv/deployments","created_at":"2014-12-25T17:31:41Z","updated_at":"2016-04-20T21:06:09Z","pushed_at":"2016-06-25T15:17:08Z","git_url":"git://github.com/segalmax/openptv.git","ssh_url":"git@github.com:segalmax/openptv.git","clone_url":"https://github.com/segalmax/openptv.git","svn_url":"https://github.com/segalmax/openptv","homepage":"www.openptv.net","size":623,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yosefm:master","ref":"master","sha":"8d032f44b2d42eb64cc180bf3bf3263bb217b939","user":{"login":"yosefm","id":75150,"avatar_url":"https://avatars.githubusercontent.com/u/75150?v=3","gravatar_id":"","url":"https://api.github.com/users/yosefm","html_url":"https://github.com/yosefm","followers_url":"https://api.github.com/users/yosefm/followers","following_url":"https://api.github.com/users/yosefm/following{/other_user}","gists_url":"https://api.github.com/users/yosefm/gists{/gist_id}","starred_url":"https://api.github.com/users/yosefm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosefm/subscriptions","organizations_url":"https://api.github.com/users/yosefm/orgs","repos_url":"https://api.github.com/users/yosefm/repos","events_url":"https://api.github.com/users/yosefm/events{/privacy}","received_events_url":"https://api.github.com/users/yosefm/received_events","type":"User","site_admin":false},"repo":{"id":7258917,"name":"openptv","full_name":"yosefm/openptv","owner":{"login":"yosefm","id":75150,"avatar_url":"https://avatars.githubusercontent.com/u/75150?v=3","gravatar_id":"","url":"https://api.github.com/users/yosefm","html_url":"https://github.com/yosefm","followers_url":"https://api.github.com/users/yosefm/followers","following_url":"https://api.github.com/users/yosefm/following{/other_user}","gists_url":"https://api.github.com/users/yosefm/gists{/gist_id}","starred_url":"https://api.github.com/users/yosefm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosefm/subscriptions","organizations_url":"https://api.github.com/users/yosefm/orgs","repos_url":"https://api.github.com/users/yosefm/repos","events_url":"https://api.github.com/users/yosefm/events{/privacy}","received_events_url":"https://api.github.com/users/yosefm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yosefm/openptv","description":"The main repository for peer-reviewed source-code ","fork":true,"url":"https://api.github.com/repos/yosefm/openptv","forks_url":"https://api.github.com/repos/yosefm/openptv/forks","keys_url":"https://api.github.com/repos/yosefm/openptv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yosefm/openptv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yosefm/openptv/teams","hooks_url":"https://api.github.com/repos/yosefm/openptv/hooks","issue_events_url":"https://api.github.com/repos/yosefm/openptv/issues/events{/number}","events_url":"https://api.github.com/repos/yosefm/openptv/events","assignees_url":"https://api.github.com/repos/yosefm/openptv/assignees{/user}","branches_url":"https://api.github.com/repos/yosefm/openptv/branches{/branch}","tags_url":"https://api.github.com/repos/yosefm/openptv/tags","blobs_url":"https://api.github.com/repos/yosefm/openptv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yosefm/openptv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yosefm/openptv/git/refs{/sha}","trees_url":"https://api.github.com/repos/yosefm/openptv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yosefm/openptv/statuses/{sha}","languages_url":"https://api.github.com/repos/yosefm/openptv/languages","stargazers_url":"https://api.github.com/repos/yosefm/openptv/stargazers","contributors_url":"https://api.github.com/repos/yosefm/openptv/contributors","subscribers_url":"https://api.github.com/repos/yosefm/openptv/subscribers","subscription_url":"https://api.github.com/repos/yosefm/openptv/subscription","commits_url":"https://api.github.com/repos/yosefm/openptv/commits{/sha}","git_commits_url":"https://api.github.com/repos/yosefm/openptv/git/commits{/sha}","comments_url":"https://api.github.com/repos/yosefm/openptv/comments{/number}","issue_comment_url":"https://api.github.com/repos/yosefm/openptv/issues/comments{/number}","contents_url":"https://api.github.com/repos/yosefm/openptv/contents/{+path}","compare_url":"https://api.github.com/repos/yosefm/openptv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yosefm/openptv/merges","archive_url":"https://api.github.com/repos/yosefm/openptv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yosefm/openptv/downloads","issues_url":"https://api.github.com/repos/yosefm/openptv/issues{/number}","pulls_url":"https://api.github.com/repos/yosefm/openptv/pulls{/number}","milestones_url":"https://api.github.com/repos/yosefm/openptv/milestones{/number}","notifications_url":"https://api.github.com/repos/yosefm/openptv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yosefm/openptv/labels{/name}","releases_url":"https://api.github.com/repos/yosefm/openptv/releases{/id}","deployments_url":"https://api.github.com/repos/yosefm/openptv/deployments","created_at":"2012-12-20T14:26:35Z","updated_at":"2015-03-11T13:37:44Z","pushed_at":"2016-06-26T12:35:56Z","git_url":"git://github.com/yosefm/openptv.git","ssh_url":"git@github.com:yosefm/openptv.git","clone_url":"https://github.com/yosefm/openptv.git","svn_url":"https://github.com/yosefm/openptv","homepage":null,"size":730,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yosefm/openptv/pulls/25"},"html":{"href":"https://github.com/yosefm/openptv/pull/25"},"issue":{"href":"https://api.github.com/repos/yosefm/openptv/issues/25"},"comments":{"href":"https://api.github.com/repos/yosefm/openptv/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/yosefm/openptv/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/yosefm/openptv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yosefm/openptv/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/yosefm/openptv/statuses/61d4f9695261a56926f1eced65654f1ba65f3daf"}}}}
{"actor":{"display_login":"yosefm"}}