{"action":"created","comment":{"url":"https://api.github.com/repos/arrayfire/arrayfire/pulls/comments/71725763","id":71725763,"diff_hunk":"@@ -0,0 +1,160 @@\n+#pragma once\n+#include <vector>\n+#include <opencv2/core/core.hpp>\n+#include <arrayfire.h>\n+\n+namespace afcv\n+{\n+\n+/*\n+ * opencv -> arrayfire\n+ */\n+// conversion for cv::Mat\n+af::array array(const std::vector<cv::Mat>& input, bool transpose = true);\n+af::array array(const cv::Mat& input, bool transpose = true);\n+\n+/*\n+ * arrayfire -> opencv\n+ */\n+// af::array conversion to cv::Mat\n+cv::Mat toMat(const af::array& input, int type = CV_32F, bool transpose = true);\n+\n+\n+//helper conversion function\n+void copy_data(Mat& input, af::array& output, bool transpose) {","path":"include/af/opencv2.hpp","position":24,"original_position":24,"commit_id":"3d03867c549e95883ffe085f75f3959de6153f48","original_commit_id":"3d03867c549e95883ffe085f75f3959de6153f48","user":{"login":"syurkevi","id":4434164,"avatar_url":"https://avatars.githubusercontent.com/u/4434164?v=3","gravatar_id":"","url":"https://api.github.com/users/syurkevi","html_url":"https://github.com/syurkevi","followers_url":"https://api.github.com/users/syurkevi/followers","following_url":"https://api.github.com/users/syurkevi/following{/other_user}","gists_url":"https://api.github.com/users/syurkevi/gists{/gist_id}","starred_url":"https://api.github.com/users/syurkevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syurkevi/subscriptions","organizations_url":"https://api.github.com/users/syurkevi/orgs","repos_url":"https://api.github.com/users/syurkevi/repos","events_url":"https://api.github.com/users/syurkevi/events{/privacy}","received_events_url":"https://api.github.com/users/syurkevi/received_events","type":"User","site_admin":false},"body":"Only one should be included at a time. Easy workaround would be to use:\r\n#include \"opencv2/core/version.hpp\"\r\n#if CV_MAJOR_VERSION == 2\r\n#include opencv2.hpp\r\n#elif CV_MAJOR_VERSION == 3\r\n#include opencv3.hpp\r\n#endif","created_at":"2016-07-21T15:17:01Z","updated_at":"2016-07-21T15:17:01Z","html_url":"https://github.com/arrayfire/arrayfire/pull/1512#discussion_r71725763","pull_request_url":"https://api.github.com/repos/arrayfire/arrayfire/pulls/1512","_links":{"self":{"href":"https://api.github.com/repos/arrayfire/arrayfire/pulls/comments/71725763"},"html":{"href":"https://github.com/arrayfire/arrayfire/pull/1512#discussion_r71725763"},"pull_request":{"href":"https://api.github.com/repos/arrayfire/arrayfire/pulls/1512"}}},"pull_request":{"url":"https://api.github.com/repos/arrayfire/arrayfire/pulls/1512","id":78311678,"html_url":"https://github.com/arrayfire/arrayfire/pull/1512","diff_url":"https://github.com/arrayfire/arrayfire/pull/1512.diff","patch_url":"https://github.com/arrayfire/arrayfire/pull/1512.patch","issue_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1512","number":1512,"state":"open","locked":false,"title":"adds stl, thrust, opencv interop functions","user":{"login":"syurkevi","id":4434164,"avatar_url":"https://avatars.githubusercontent.com/u/4434164?v=3","gravatar_id":"","url":"https://api.github.com/users/syurkevi","html_url":"https://github.com/syurkevi","followers_url":"https://api.github.com/users/syurkevi/followers","following_url":"https://api.github.com/users/syurkevi/following{/other_user}","gists_url":"https://api.github.com/users/syurkevi/gists{/gist_id}","starred_url":"https://api.github.com/users/syurkevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syurkevi/subscriptions","organizations_url":"https://api.github.com/users/syurkevi/orgs","repos_url":"https://api.github.com/users/syurkevi/repos","events_url":"https://api.github.com/users/syurkevi/events{/privacy}","received_events_url":"https://api.github.com/users/syurkevi/received_events","type":"User","site_admin":false},"body":"Addresses interop issues: #1504 , #1505, #529 \r\nRider issue #1503 . ","created_at":"2016-07-21T13:02:25Z","updated_at":"2016-07-21T15:17:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d29bcb0a6cae1168dca1c06fae54934cd88caf24","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/arrayfire/arrayfire/pulls/1512/commits","review_comments_url":"https://api.github.com/repos/arrayfire/arrayfire/pulls/1512/comments","review_comment_url":"https://api.github.com/repos/arrayfire/arrayfire/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/1512/comments","statuses_url":"https://api.github.com/repos/arrayfire/arrayfire/statuses/3d03867c549e95883ffe085f75f3959de6153f48","head":{"label":"syurkevi:interops","ref":"interops","sha":"3d03867c549e95883ffe085f75f3959de6153f48","user":{"login":"syurkevi","id":4434164,"avatar_url":"https://avatars.githubusercontent.com/u/4434164?v=3","gravatar_id":"","url":"https://api.github.com/users/syurkevi","html_url":"https://github.com/syurkevi","followers_url":"https://api.github.com/users/syurkevi/followers","following_url":"https://api.github.com/users/syurkevi/following{/other_user}","gists_url":"https://api.github.com/users/syurkevi/gists{/gist_id}","starred_url":"https://api.github.com/users/syurkevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syurkevi/subscriptions","organizations_url":"https://api.github.com/users/syurkevi/orgs","repos_url":"https://api.github.com/users/syurkevi/repos","events_url":"https://api.github.com/users/syurkevi/events{/privacy}","received_events_url":"https://api.github.com/users/syurkevi/received_events","type":"User","site_admin":false},"repo":{"id":28361843,"name":"arrayfire","full_name":"syurkevi/arrayfire","owner":{"login":"syurkevi","id":4434164,"avatar_url":"https://avatars.githubusercontent.com/u/4434164?v=3","gravatar_id":"","url":"https://api.github.com/users/syurkevi","html_url":"https://github.com/syurkevi","followers_url":"https://api.github.com/users/syurkevi/followers","following_url":"https://api.github.com/users/syurkevi/following{/other_user}","gists_url":"https://api.github.com/users/syurkevi/gists{/gist_id}","starred_url":"https://api.github.com/users/syurkevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syurkevi/subscriptions","organizations_url":"https://api.github.com/users/syurkevi/orgs","repos_url":"https://api.github.com/users/syurkevi/repos","events_url":"https://api.github.com/users/syurkevi/events{/privacy}","received_events_url":"https://api.github.com/users/syurkevi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/syurkevi/arrayfire","description":"ArrayFire: a general purpose GPU library.","fork":true,"url":"https://api.github.com/repos/syurkevi/arrayfire","forks_url":"https://api.github.com/repos/syurkevi/arrayfire/forks","keys_url":"https://api.github.com/repos/syurkevi/arrayfire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/syurkevi/arrayfire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/syurkevi/arrayfire/teams","hooks_url":"https://api.github.com/repos/syurkevi/arrayfire/hooks","issue_events_url":"https://api.github.com/repos/syurkevi/arrayfire/issues/events{/number}","events_url":"https://api.github.com/repos/syurkevi/arrayfire/events","assignees_url":"https://api.github.com/repos/syurkevi/arrayfire/assignees{/user}","branches_url":"https://api.github.com/repos/syurkevi/arrayfire/branches{/branch}","tags_url":"https://api.github.com/repos/syurkevi/arrayfire/tags","blobs_url":"https://api.github.com/repos/syurkevi/arrayfire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/syurkevi/arrayfire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/syurkevi/arrayfire/git/refs{/sha}","trees_url":"https://api.github.com/repos/syurkevi/arrayfire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/syurkevi/arrayfire/statuses/{sha}","languages_url":"https://api.github.com/repos/syurkevi/arrayfire/languages","stargazers_url":"https://api.github.com/repos/syurkevi/arrayfire/stargazers","contributors_url":"https://api.github.com/repos/syurkevi/arrayfire/contributors","subscribers_url":"https://api.github.com/repos/syurkevi/arrayfire/subscribers","subscription_url":"https://api.github.com/repos/syurkevi/arrayfire/subscription","commits_url":"https://api.github.com/repos/syurkevi/arrayfire/commits{/sha}","git_commits_url":"https://api.github.com/repos/syurkevi/arrayfire/git/commits{/sha}","comments_url":"https://api.github.com/repos/syurkevi/arrayfire/comments{/number}","issue_comment_url":"https://api.github.com/repos/syurkevi/arrayfire/issues/comments{/number}","contents_url":"https://api.github.com/repos/syurkevi/arrayfire/contents/{+path}","compare_url":"https://api.github.com/repos/syurkevi/arrayfire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/syurkevi/arrayfire/merges","archive_url":"https://api.github.com/repos/syurkevi/arrayfire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/syurkevi/arrayfire/downloads","issues_url":"https://api.github.com/repos/syurkevi/arrayfire/issues{/number}","pulls_url":"https://api.github.com/repos/syurkevi/arrayfire/pulls{/number}","milestones_url":"https://api.github.com/repos/syurkevi/arrayfire/milestones{/number}","notifications_url":"https://api.github.com/repos/syurkevi/arrayfire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/syurkevi/arrayfire/labels{/name}","releases_url":"https://api.github.com/repos/syurkevi/arrayfire/releases{/id}","deployments_url":"https://api.github.com/repos/syurkevi/arrayfire/deployments","created_at":"2014-12-22T22:07:13Z","updated_at":"2014-12-22T22:07:14Z","pushed_at":"2016-07-21T12:57:54Z","git_url":"git://github.com/syurkevi/arrayfire.git","ssh_url":"git@github.com:syurkevi/arrayfire.git","clone_url":"https://github.com/syurkevi/arrayfire.git","svn_url":"https://github.com/syurkevi/arrayfire","homepage":"http://arrayfire.com","size":8786,"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":"devel"}},"base":{"label":"arrayfire:devel","ref":"devel","sha":"072d507358bfa6ba45e77ad9b93c0374ad17e549","user":{"login":"arrayfire","id":5395442,"avatar_url":"https://avatars.githubusercontent.com/u/5395442?v=3","gravatar_id":"","url":"https://api.github.com/users/arrayfire","html_url":"https://github.com/arrayfire","followers_url":"https://api.github.com/users/arrayfire/followers","following_url":"https://api.github.com/users/arrayfire/following{/other_user}","gists_url":"https://api.github.com/users/arrayfire/gists{/gist_id}","starred_url":"https://api.github.com/users/arrayfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arrayfire/subscriptions","organizations_url":"https://api.github.com/users/arrayfire/orgs","repos_url":"https://api.github.com/users/arrayfire/repos","events_url":"https://api.github.com/users/arrayfire/events{/privacy}","received_events_url":"https://api.github.com/users/arrayfire/received_events","type":"Organization","site_admin":false},"repo":{"id":25889802,"name":"arrayfire","full_name":"arrayfire/arrayfire","owner":{"login":"arrayfire","id":5395442,"avatar_url":"https://avatars.githubusercontent.com/u/5395442?v=3","gravatar_id":"","url":"https://api.github.com/users/arrayfire","html_url":"https://github.com/arrayfire","followers_url":"https://api.github.com/users/arrayfire/followers","following_url":"https://api.github.com/users/arrayfire/following{/other_user}","gists_url":"https://api.github.com/users/arrayfire/gists{/gist_id}","starred_url":"https://api.github.com/users/arrayfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arrayfire/subscriptions","organizations_url":"https://api.github.com/users/arrayfire/orgs","repos_url":"https://api.github.com/users/arrayfire/repos","events_url":"https://api.github.com/users/arrayfire/events{/privacy}","received_events_url":"https://api.github.com/users/arrayfire/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/arrayfire/arrayfire","description":"ArrayFire: a general purpose GPU library.","fork":false,"url":"https://api.github.com/repos/arrayfire/arrayfire","forks_url":"https://api.github.com/repos/arrayfire/arrayfire/forks","keys_url":"https://api.github.com/repos/arrayfire/arrayfire/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arrayfire/arrayfire/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arrayfire/arrayfire/teams","hooks_url":"https://api.github.com/repos/arrayfire/arrayfire/hooks","issue_events_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/events{/number}","events_url":"https://api.github.com/repos/arrayfire/arrayfire/events","assignees_url":"https://api.github.com/repos/arrayfire/arrayfire/assignees{/user}","branches_url":"https://api.github.com/repos/arrayfire/arrayfire/branches{/branch}","tags_url":"https://api.github.com/repos/arrayfire/arrayfire/tags","blobs_url":"https://api.github.com/repos/arrayfire/arrayfire/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arrayfire/arrayfire/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arrayfire/arrayfire/git/refs{/sha}","trees_url":"https://api.github.com/repos/arrayfire/arrayfire/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arrayfire/arrayfire/statuses/{sha}","languages_url":"https://api.github.com/repos/arrayfire/arrayfire/languages","stargazers_url":"https://api.github.com/repos/arrayfire/arrayfire/stargazers","contributors_url":"https://api.github.com/repos/arrayfire/arrayfire/contributors","subscribers_url":"https://api.github.com/repos/arrayfire/arrayfire/subscribers","subscription_url":"https://api.github.com/repos/arrayfire/arrayfire/subscription","commits_url":"https://api.github.com/repos/arrayfire/arrayfire/commits{/sha}","git_commits_url":"https://api.github.com/repos/arrayfire/arrayfire/git/commits{/sha}","comments_url":"https://api.github.com/repos/arrayfire/arrayfire/comments{/number}","issue_comment_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/comments{/number}","contents_url":"https://api.github.com/repos/arrayfire/arrayfire/contents/{+path}","compare_url":"https://api.github.com/repos/arrayfire/arrayfire/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arrayfire/arrayfire/merges","archive_url":"https://api.github.com/repos/arrayfire/arrayfire/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arrayfire/arrayfire/downloads","issues_url":"https://api.github.com/repos/arrayfire/arrayfire/issues{/number}","pulls_url":"https://api.github.com/repos/arrayfire/arrayfire/pulls{/number}","milestones_url":"https://api.github.com/repos/arrayfire/arrayfire/milestones{/number}","notifications_url":"https://api.github.com/repos/arrayfire/arrayfire/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arrayfire/arrayfire/labels{/name}","releases_url":"https://api.github.com/repos/arrayfire/arrayfire/releases{/id}","deployments_url":"https://api.github.com/repos/arrayfire/arrayfire/deployments","created_at":"2014-10-28T20:58:33Z","updated_at":"2016-07-20T11:48:09Z","pushed_at":"2016-07-21T13:02:26Z","git_url":"git://github.com/arrayfire/arrayfire.git","ssh_url":"git@github.com:arrayfire/arrayfire.git","clone_url":"https://github.com/arrayfire/arrayfire.git","svn_url":"https://github.com/arrayfire/arrayfire","homepage":"https://arrayfire.com","size":12819,"stargazers_count":1389,"watchers_count":1389,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":206,"mirror_url":null,"open_issues_count":152,"forks":206,"open_issues":152,"watchers":1389,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/arrayfire/arrayfire/pulls/1512"},"html":{"href":"https://github.com/arrayfire/arrayfire/pull/1512"},"issue":{"href":"https://api.github.com/repos/arrayfire/arrayfire/issues/1512"},"comments":{"href":"https://api.github.com/repos/arrayfire/arrayfire/issues/1512/comments"},"review_comments":{"href":"https://api.github.com/repos/arrayfire/arrayfire/pulls/1512/comments"},"review_comment":{"href":"https://api.github.com/repos/arrayfire/arrayfire/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arrayfire/arrayfire/pulls/1512/commits"},"statuses":{"href":"https://api.github.com/repos/arrayfire/arrayfire/statuses/3d03867c549e95883ffe085f75f3959de6153f48"}}}}
{"actor":{"display_login":"syurkevi"}}