{"action":"created","comment":{"url":"https://api.github.com/repos/RobertLeahy/SENG499/pulls/comments/62786888","id":62786888,"diff_hunk":"@@ -0,0 +1,69 @@\n+#include <boost/filesystem.hpp>\n+#include <opencv2/opencv.hpp>\n+#include <seng499/msrc_file_system_depth_device.hpp>\n+#include <regex>\n+#include <iostream>\n+#include <cstdint>\n+\n+namespace seng499 {\n+\n+\tstatic const std::regex & get_regex() {\n+\n+\t\tstatic const std::regex msrc_depth_file_pattern(\".*depth.*\");\n+\t\treturn msrc_depth_file_pattern;\n+\n+\t}\n+\t\n+\t\n+\tbool msrc_file_system_depth_device_filter::operator () (const boost::filesystem::path & path) const {\n+\t\t\n+\t\treturn std::regex_match(path.filename().string(), get_regex());\n+\t\t\n+\t}\n+\t\n+\t\n+\tstd::vector<float> msrc_file_system_depth_device_frame_factory::operator () (const boost::filesystem::path & path, std::vector<float> vec) {\n+\t\n+\t\t// make sure this is empty\n+\t\tvec.clear();\n+\n+\t\t// reserve the size of our image\n+\t\tvec.reserve(640*480);\n+\n+\t\t// Load a grayscale depth image. Anydepth is necessary as these are 16 bit ints \n+\t\tcv::Mat img = cv::imread(path.native(), CV_LOAD_IMAGE_GRAYSCALE | CV_LOAD_IMAGE_ANYDEPTH);","path":"src/msrc_file_system_depth_device.cpp","position":34,"original_position":34,"commit_id":"31d1c47e8d9df363feaf1ffc859c67c0c8a1366f","original_commit_id":"31d1c47e8d9df363feaf1ffc859c67c0c8a1366f","user":{"login":"RobertLeahy","id":648276,"avatar_url":"https://avatars.githubusercontent.com/u/648276?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertLeahy","html_url":"https://github.com/RobertLeahy","followers_url":"https://api.github.com/users/RobertLeahy/followers","following_url":"https://api.github.com/users/RobertLeahy/following{/other_user}","gists_url":"https://api.github.com/users/RobertLeahy/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertLeahy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertLeahy/subscriptions","organizations_url":"https://api.github.com/users/RobertLeahy/orgs","repos_url":"https://api.github.com/users/RobertLeahy/repos","events_url":"https://api.github.com/users/RobertLeahy/events{/privacy}","received_events_url":"https://api.github.com/users/RobertLeahy/received_events","type":"User","site_admin":false},"body":"Should we verify that the file read in is actually 640x480 and throw if it's not?","created_at":"2016-05-11T03:14:33Z","updated_at":"2016-05-11T03:14:33Z","html_url":"https://github.com/RobertLeahy/SENG499/pull/24#discussion_r62786888","pull_request_url":"https://api.github.com/repos/RobertLeahy/SENG499/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/RobertLeahy/SENG499/pulls/comments/62786888"},"html":{"href":"https://github.com/RobertLeahy/SENG499/pull/24#discussion_r62786888"},"pull_request":{"href":"https://api.github.com/repos/RobertLeahy/SENG499/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/RobertLeahy/SENG499/pulls/24","id":69607109,"html_url":"https://github.com/RobertLeahy/SENG499/pull/24","diff_url":"https://github.com/RobertLeahy/SENG499/pull/24.diff","patch_url":"https://github.com/RobertLeahy/SENG499/pull/24.patch","issue_url":"https://api.github.com/repos/RobertLeahy/SENG499/issues/24","number":24,"state":"open","locked":false,"title":"seng499::msrc_file_system_depth_device","user":{"login":"jordan-heemskerk","id":4603704,"avatar_url":"https://avatars.githubusercontent.com/u/4603704?v=3","gravatar_id":"","url":"https://api.github.com/users/jordan-heemskerk","html_url":"https://github.com/jordan-heemskerk","followers_url":"https://api.github.com/users/jordan-heemskerk/followers","following_url":"https://api.github.com/users/jordan-heemskerk/following{/other_user}","gists_url":"https://api.github.com/users/jordan-heemskerk/gists{/gist_id}","starred_url":"https://api.github.com/users/jordan-heemskerk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordan-heemskerk/subscriptions","organizations_url":"https://api.github.com/users/jordan-heemskerk/orgs","repos_url":"https://api.github.com/users/jordan-heemskerk/repos","events_url":"https://api.github.com/users/jordan-heemskerk/events{/privacy}","received_events_url":"https://api.github.com/users/jordan-heemskerk/received_events","type":"User","site_admin":false},"body":"... and\r\n - Create data directory\r\n - Add small smoke test png from http://www.schaik.com/pngsuite/pngsuite_bas_png.html\r\n - Update dependencies on opencv\r\n - Remove old fake path","created_at":"2016-05-11T02:35:54Z","updated_at":"2016-05-11T03:14:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f29c5bd56c934caec9dea3b9055df4e8675d512","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RobertLeahy/SENG499/pulls/24/commits","review_comments_url":"https://api.github.com/repos/RobertLeahy/SENG499/pulls/24/comments","review_comment_url":"https://api.github.com/repos/RobertLeahy/SENG499/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RobertLeahy/SENG499/issues/24/comments","statuses_url":"https://api.github.com/repos/RobertLeahy/SENG499/statuses/31d1c47e8d9df363feaf1ffc859c67c0c8a1366f","head":{"label":"RobertLeahy:msrc_file_system_depth_device","ref":"msrc_file_system_depth_device","sha":"31d1c47e8d9df363feaf1ffc859c67c0c8a1366f","user":{"login":"RobertLeahy","id":648276,"avatar_url":"https://avatars.githubusercontent.com/u/648276?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertLeahy","html_url":"https://github.com/RobertLeahy","followers_url":"https://api.github.com/users/RobertLeahy/followers","following_url":"https://api.github.com/users/RobertLeahy/following{/other_user}","gists_url":"https://api.github.com/users/RobertLeahy/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertLeahy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertLeahy/subscriptions","organizations_url":"https://api.github.com/users/RobertLeahy/orgs","repos_url":"https://api.github.com/users/RobertLeahy/repos","events_url":"https://api.github.com/users/RobertLeahy/events{/privacy}","received_events_url":"https://api.github.com/users/RobertLeahy/received_events","type":"User","site_admin":false},"repo":{"id":58011830,"name":"SENG499","full_name":"RobertLeahy/SENG499","owner":{"login":"RobertLeahy","id":648276,"avatar_url":"https://avatars.githubusercontent.com/u/648276?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertLeahy","html_url":"https://github.com/RobertLeahy","followers_url":"https://api.github.com/users/RobertLeahy/followers","following_url":"https://api.github.com/users/RobertLeahy/following{/other_user}","gists_url":"https://api.github.com/users/RobertLeahy/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertLeahy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertLeahy/subscriptions","organizations_url":"https://api.github.com/users/RobertLeahy/orgs","repos_url":"https://api.github.com/users/RobertLeahy/repos","events_url":"https://api.github.com/users/RobertLeahy/events{/privacy}","received_events_url":"https://api.github.com/users/RobertLeahy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RobertLeahy/SENG499","description":"","fork":false,"url":"https://api.github.com/repos/RobertLeahy/SENG499","forks_url":"https://api.github.com/repos/RobertLeahy/SENG499/forks","keys_url":"https://api.github.com/repos/RobertLeahy/SENG499/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RobertLeahy/SENG499/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RobertLeahy/SENG499/teams","hooks_url":"https://api.github.com/repos/RobertLeahy/SENG499/hooks","issue_events_url":"https://api.github.com/repos/RobertLeahy/SENG499/issues/events{/number}","events_url":"https://api.github.com/repos/RobertLeahy/SENG499/events","assignees_url":"https://api.github.com/repos/RobertLeahy/SENG499/assignees{/user}","branches_url":"https://api.github.com/repos/RobertLeahy/SENG499/branches{/branch}","tags_url":"https://api.github.com/repos/RobertLeahy/SENG499/tags","blobs_url":"https://api.github.com/repos/RobertLeahy/SENG499/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RobertLeahy/SENG499/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RobertLeahy/SENG499/git/refs{/sha}","trees_url":"https://api.github.com/repos/RobertLeahy/SENG499/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RobertLeahy/SENG499/statuses/{sha}","languages_url":"https://api.github.com/repos/RobertLeahy/SENG499/languages","stargazers_url":"https://api.github.com/repos/RobertLeahy/SENG499/stargazers","contributors_url":"https://api.github.com/repos/RobertLeahy/SENG499/contributors","subscribers_url":"https://api.github.com/repos/RobertLeahy/SENG499/subscribers","subscription_url":"https://api.github.com/repos/RobertLeahy/SENG499/subscription","commits_url":"https://api.github.com/repos/RobertLeahy/SENG499/commits{/sha}","git_commits_url":"https://api.github.com/repos/RobertLeahy/SENG499/git/commits{/sha}","comments_url":"https://api.github.com/repos/RobertLeahy/SENG499/comments{/number}","issue_comment_url":"https://api.github.com/repos/RobertLeahy/SENG499/issues/comments{/number}","contents_url":"https://api.github.com/repos/RobertLeahy/SENG499/contents/{+path}","compare_url":"https://api.github.com/repos/RobertLeahy/SENG499/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RobertLeahy/SENG499/merges","archive_url":"https://api.github.com/repos/RobertLeahy/SENG499/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RobertLeahy/SENG499/downloads","issues_url":"https://api.github.com/repos/RobertLeahy/SENG499/issues{/number}","pulls_url":"https://api.github.com/repos/RobertLeahy/SENG499/pulls{/number}","milestones_url":"https://api.github.com/repos/RobertLeahy/SENG499/milestones{/number}","notifications_url":"https://api.github.com/repos/RobertLeahy/SENG499/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RobertLeahy/SENG499/labels{/name}","releases_url":"https://api.github.com/repos/RobertLeahy/SENG499/releases{/id}","deployments_url":"https://api.github.com/repos/RobertLeahy/SENG499/deployments","created_at":"2016-05-04T00:56:52Z","updated_at":"2016-05-10T02:01:36Z","pushed_at":"2016-05-11T03:05:49Z","git_url":"git://github.com/RobertLeahy/SENG499.git","ssh_url":"git@github.com:RobertLeahy/SENG499.git","clone_url":"https://github.com/RobertLeahy/SENG499.git","svn_url":"https://github.com/RobertLeahy/SENG499","homepage":null,"size":53,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":17,"forks":2,"open_issues":17,"watchers":1,"default_branch":"master"}},"base":{"label":"RobertLeahy:master","ref":"master","sha":"32523e431c714f8c534f56f2fb8ddff13ce736ca","user":{"login":"RobertLeahy","id":648276,"avatar_url":"https://avatars.githubusercontent.com/u/648276?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertLeahy","html_url":"https://github.com/RobertLeahy","followers_url":"https://api.github.com/users/RobertLeahy/followers","following_url":"https://api.github.com/users/RobertLeahy/following{/other_user}","gists_url":"https://api.github.com/users/RobertLeahy/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertLeahy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertLeahy/subscriptions","organizations_url":"https://api.github.com/users/RobertLeahy/orgs","repos_url":"https://api.github.com/users/RobertLeahy/repos","events_url":"https://api.github.com/users/RobertLeahy/events{/privacy}","received_events_url":"https://api.github.com/users/RobertLeahy/received_events","type":"User","site_admin":false},"repo":{"id":58011830,"name":"SENG499","full_name":"RobertLeahy/SENG499","owner":{"login":"RobertLeahy","id":648276,"avatar_url":"https://avatars.githubusercontent.com/u/648276?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertLeahy","html_url":"https://github.com/RobertLeahy","followers_url":"https://api.github.com/users/RobertLeahy/followers","following_url":"https://api.github.com/users/RobertLeahy/following{/other_user}","gists_url":"https://api.github.com/users/RobertLeahy/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertLeahy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertLeahy/subscriptions","organizations_url":"https://api.github.com/users/RobertLeahy/orgs","repos_url":"https://api.github.com/users/RobertLeahy/repos","events_url":"https://api.github.com/users/RobertLeahy/events{/privacy}","received_events_url":"https://api.github.com/users/RobertLeahy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RobertLeahy/SENG499","description":"","fork":false,"url":"https://api.github.com/repos/RobertLeahy/SENG499","forks_url":"https://api.github.com/repos/RobertLeahy/SENG499/forks","keys_url":"https://api.github.com/repos/RobertLeahy/SENG499/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RobertLeahy/SENG499/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RobertLeahy/SENG499/teams","hooks_url":"https://api.github.com/repos/RobertLeahy/SENG499/hooks","issue_events_url":"https://api.github.com/repos/RobertLeahy/SENG499/issues/events{/number}","events_url":"https://api.github.com/repos/RobertLeahy/SENG499/events","assignees_url":"https://api.github.com/repos/RobertLeahy/SENG499/assignees{/user}","branches_url":"https://api.github.com/repos/RobertLeahy/SENG499/branches{/branch}","tags_url":"https://api.github.com/repos/RobertLeahy/SENG499/tags","blobs_url":"https://api.github.com/repos/RobertLeahy/SENG499/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RobertLeahy/SENG499/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RobertLeahy/SENG499/git/refs{/sha}","trees_url":"https://api.github.com/repos/RobertLeahy/SENG499/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RobertLeahy/SENG499/statuses/{sha}","languages_url":"https://api.github.com/repos/RobertLeahy/SENG499/languages","stargazers_url":"https://api.github.com/repos/RobertLeahy/SENG499/stargazers","contributors_url":"https://api.github.com/repos/RobertLeahy/SENG499/contributors","subscribers_url":"https://api.github.com/repos/RobertLeahy/SENG499/subscribers","subscription_url":"https://api.github.com/repos/RobertLeahy/SENG499/subscription","commits_url":"https://api.github.com/repos/RobertLeahy/SENG499/commits{/sha}","git_commits_url":"https://api.github.com/repos/RobertLeahy/SENG499/git/commits{/sha}","comments_url":"https://api.github.com/repos/RobertLeahy/SENG499/comments{/number}","issue_comment_url":"https://api.github.com/repos/RobertLeahy/SENG499/issues/comments{/number}","contents_url":"https://api.github.com/repos/RobertLeahy/SENG499/contents/{+path}","compare_url":"https://api.github.com/repos/RobertLeahy/SENG499/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RobertLeahy/SENG499/merges","archive_url":"https://api.github.com/repos/RobertLeahy/SENG499/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RobertLeahy/SENG499/downloads","issues_url":"https://api.github.com/repos/RobertLeahy/SENG499/issues{/number}","pulls_url":"https://api.github.com/repos/RobertLeahy/SENG499/pulls{/number}","milestones_url":"https://api.github.com/repos/RobertLeahy/SENG499/milestones{/number}","notifications_url":"https://api.github.com/repos/RobertLeahy/SENG499/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RobertLeahy/SENG499/labels{/name}","releases_url":"https://api.github.com/repos/RobertLeahy/SENG499/releases{/id}","deployments_url":"https://api.github.com/repos/RobertLeahy/SENG499/deployments","created_at":"2016-05-04T00:56:52Z","updated_at":"2016-05-10T02:01:36Z","pushed_at":"2016-05-11T03:05:49Z","git_url":"git://github.com/RobertLeahy/SENG499.git","ssh_url":"git@github.com:RobertLeahy/SENG499.git","clone_url":"https://github.com/RobertLeahy/SENG499.git","svn_url":"https://github.com/RobertLeahy/SENG499","homepage":null,"size":53,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":17,"forks":2,"open_issues":17,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RobertLeahy/SENG499/pulls/24"},"html":{"href":"https://github.com/RobertLeahy/SENG499/pull/24"},"issue":{"href":"https://api.github.com/repos/RobertLeahy/SENG499/issues/24"},"comments":{"href":"https://api.github.com/repos/RobertLeahy/SENG499/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/RobertLeahy/SENG499/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/RobertLeahy/SENG499/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RobertLeahy/SENG499/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/RobertLeahy/SENG499/statuses/31d1c47e8d9df363feaf1ffc859c67c0c8a1366f"}}}}