{"action":"created","comment":{"url":"https://api.github.com/repos/imagej/imagej-ops/pulls/comments/53239159","id":53239159,"diff_hunk":"@@ -0,0 +1,60 @@\n+\n+package net.imagej.ops.filter.pad;\n+\n+import net.imagej.ops.Ops;\n+import net.imagej.ops.filter.fft.FFTMethodsUtility;\n+import net.imagej.ops.special.function.AbstractBinaryFunctionOp;\n+import net.imglib2.Dimensions;\n+import net.imglib2.Interval;\n+import net.imglib2.RandomAccessibleInterval;\n+import net.imglib2.outofbounds.OutOfBoundsConstantValueFactory;\n+import net.imglib2.outofbounds.OutOfBoundsFactory;\n+import net.imglib2.type.numeric.RealType;\n+import net.imglib2.util.Util;\n+import net.imglib2.view.Views;\n+\n+import org.scijava.Priority;\n+import org.scijava.plugin.Parameter;\n+import org.scijava.plugin.Plugin;\n+\n+/**\n+ * Op used to pad the image to a size that is compatible with FFTMethods\n+ * \n+ * @author bnorthan\n+ * @param <T>\n+ * @param <I>\n+ * @param <O>\n+ */\n+@Plugin(type = Ops.Filter.PadFFTInput.class, priority = Priority.HIGH_PRIORITY)\n+public class PadInputFFTMethods<T extends RealType<T>, I extends RandomAccessibleInterval<T>, O extends RandomAccessibleInterval<T>>\n+\textends AbstractBinaryFunctionOp<I, Dimensions, O> implements\n+\tOps.Filter.PadFFTInput\n+{\n+\n+\t@Parameter(required = false)\n+\tprivate Boolean fast = true;","path":"src/main/java/net/imagej/ops/filter/pad/PadInputFFTMethods.java","position":35,"original_position":35,"commit_id":"436c602bd5c0477f97458e2a3c64d9ca22610ac3","original_commit_id":"436c602bd5c0477f97458e2a3c64d9ca22610ac3","user":{"login":"dietzc","id":1267990,"avatar_url":"https://avatars.githubusercontent.com/u/1267990?v=3","gravatar_id":"","url":"https://api.github.com/users/dietzc","html_url":"https://github.com/dietzc","followers_url":"https://api.github.com/users/dietzc/followers","following_url":"https://api.github.com/users/dietzc/following{/other_user}","gists_url":"https://api.github.com/users/dietzc/gists{/gist_id}","starred_url":"https://api.github.com/users/dietzc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dietzc/subscriptions","organizations_url":"https://api.github.com/users/dietzc/orgs","repos_url":"https://api.github.com/users/dietzc/repos","events_url":"https://api.github.com/users/dietzc/events{/privacy}","received_events_url":"https://api.github.com/users/dietzc/received_events","type":"User","site_admin":false},"body":"`boolean`?","created_at":"2016-02-17T22:07:26Z","updated_at":"2016-02-17T22:07:26Z","html_url":"https://github.com/imagej/imagej-ops/pull/336#discussion_r53239159","pull_request_url":"https://api.github.com/repos/imagej/imagej-ops/pulls/336","_links":{"self":{"href":"https://api.github.com/repos/imagej/imagej-ops/pulls/comments/53239159"},"html":{"href":"https://github.com/imagej/imagej-ops/pull/336#discussion_r53239159"},"pull_request":{"href":"https://api.github.com/repos/imagej/imagej-ops/pulls/336"}}},"pull_request":{"url":"https://api.github.com/repos/imagej/imagej-ops/pulls/336","id":57208818,"html_url":"https://github.com/imagej/imagej-ops/pull/336","diff_url":"https://github.com/imagej/imagej-ops/pull/336.diff","patch_url":"https://github.com/imagej/imagej-ops/pull/336.patch","issue_url":"https://api.github.com/repos/imagej/imagej-ops/issues/336","number":336,"state":"open","locked":false,"title":"Major iteration of filter design","user":{"login":"bnorthan","id":4366342,"avatar_url":"https://avatars.githubusercontent.com/u/4366342?v=3","gravatar_id":"","url":"https://api.github.com/users/bnorthan","html_url":"https://github.com/bnorthan","followers_url":"https://api.github.com/users/bnorthan/followers","following_url":"https://api.github.com/users/bnorthan/following{/other_user}","gists_url":"https://api.github.com/users/bnorthan/gists{/gist_id}","starred_url":"https://api.github.com/users/bnorthan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnorthan/subscriptions","organizations_url":"https://api.github.com/users/bnorthan/orgs","repos_url":"https://api.github.com/users/bnorthan/repos","events_url":"https://api.github.com/users/bnorthan/events{/privacy}","received_events_url":"https://api.github.com/users/bnorthan/received_events","type":"User","site_admin":false},"body":"This is a significant iteration of the filter (fft, convolution,\r\n    deconvolution) design.  Due to concurrent changes in master, all the\r\ncommits were squashed into a single large commit.  This commit\r\nrefactors the code to work towards the following general goals:\r\n\r\n1.  Use RandomAccessibleInterval instead of Img as op inputs.\r\n2.  Favor composition over inheritance where possible.\r\n3.  Derive from nullary/unary/binary functions/computers/hybrids.\r\n4.  Perform op matching in initialize.","created_at":"2016-01-26T13:13:46Z","updated_at":"2016-02-17T22:07:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c0aa6c9e58c0257d74ad67e66a3b3fa20f9181cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/imagej/imagej-ops/pulls/336/commits","review_comments_url":"https://api.github.com/repos/imagej/imagej-ops/pulls/336/comments","review_comment_url":"https://api.github.com/repos/imagej/imagej-ops/pulls/comments{/number}","comments_url":"https://api.github.com/repos/imagej/imagej-ops/issues/336/comments","statuses_url":"https://api.github.com/repos/imagej/imagej-ops/statuses/436c602bd5c0477f97458e2a3c64d9ca22610ac3","head":{"label":"imagej:filter_refactor","ref":"filter_refactor","sha":"436c602bd5c0477f97458e2a3c64d9ca22610ac3","user":{"login":"imagej","id":1268233,"avatar_url":"https://avatars.githubusercontent.com/u/1268233?v=3","gravatar_id":"","url":"https://api.github.com/users/imagej","html_url":"https://github.com/imagej","followers_url":"https://api.github.com/users/imagej/followers","following_url":"https://api.github.com/users/imagej/following{/other_user}","gists_url":"https://api.github.com/users/imagej/gists{/gist_id}","starred_url":"https://api.github.com/users/imagej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imagej/subscriptions","organizations_url":"https://api.github.com/users/imagej/orgs","repos_url":"https://api.github.com/users/imagej/repos","events_url":"https://api.github.com/users/imagej/events{/privacy}","received_events_url":"https://api.github.com/users/imagej/received_events","type":"Organization","site_admin":false},"repo":{"id":17508889,"name":"imagej-ops","full_name":"imagej/imagej-ops","owner":{"login":"imagej","id":1268233,"avatar_url":"https://avatars.githubusercontent.com/u/1268233?v=3","gravatar_id":"","url":"https://api.github.com/users/imagej","html_url":"https://github.com/imagej","followers_url":"https://api.github.com/users/imagej/followers","following_url":"https://api.github.com/users/imagej/following{/other_user}","gists_url":"https://api.github.com/users/imagej/gists{/gist_id}","starred_url":"https://api.github.com/users/imagej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imagej/subscriptions","organizations_url":"https://api.github.com/users/imagej/orgs","repos_url":"https://api.github.com/users/imagej/repos","events_url":"https://api.github.com/users/imagej/events{/privacy}","received_events_url":"https://api.github.com/users/imagej/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/imagej/imagej-ops","description":"ImageJ Ops: \"Write once, run anywhere\" image processing","fork":false,"url":"https://api.github.com/repos/imagej/imagej-ops","forks_url":"https://api.github.com/repos/imagej/imagej-ops/forks","keys_url":"https://api.github.com/repos/imagej/imagej-ops/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imagej/imagej-ops/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imagej/imagej-ops/teams","hooks_url":"https://api.github.com/repos/imagej/imagej-ops/hooks","issue_events_url":"https://api.github.com/repos/imagej/imagej-ops/issues/events{/number}","events_url":"https://api.github.com/repos/imagej/imagej-ops/events","assignees_url":"https://api.github.com/repos/imagej/imagej-ops/assignees{/user}","branches_url":"https://api.github.com/repos/imagej/imagej-ops/branches{/branch}","tags_url":"https://api.github.com/repos/imagej/imagej-ops/tags","blobs_url":"https://api.github.com/repos/imagej/imagej-ops/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imagej/imagej-ops/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imagej/imagej-ops/git/refs{/sha}","trees_url":"https://api.github.com/repos/imagej/imagej-ops/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imagej/imagej-ops/statuses/{sha}","languages_url":"https://api.github.com/repos/imagej/imagej-ops/languages","stargazers_url":"https://api.github.com/repos/imagej/imagej-ops/stargazers","contributors_url":"https://api.github.com/repos/imagej/imagej-ops/contributors","subscribers_url":"https://api.github.com/repos/imagej/imagej-ops/subscribers","subscription_url":"https://api.github.com/repos/imagej/imagej-ops/subscription","commits_url":"https://api.github.com/repos/imagej/imagej-ops/commits{/sha}","git_commits_url":"https://api.github.com/repos/imagej/imagej-ops/git/commits{/sha}","comments_url":"https://api.github.com/repos/imagej/imagej-ops/comments{/number}","issue_comment_url":"https://api.github.com/repos/imagej/imagej-ops/issues/comments{/number}","contents_url":"https://api.github.com/repos/imagej/imagej-ops/contents/{+path}","compare_url":"https://api.github.com/repos/imagej/imagej-ops/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imagej/imagej-ops/merges","archive_url":"https://api.github.com/repos/imagej/imagej-ops/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imagej/imagej-ops/downloads","issues_url":"https://api.github.com/repos/imagej/imagej-ops/issues{/number}","pulls_url":"https://api.github.com/repos/imagej/imagej-ops/pulls{/number}","milestones_url":"https://api.github.com/repos/imagej/imagej-ops/milestones{/number}","notifications_url":"https://api.github.com/repos/imagej/imagej-ops/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imagej/imagej-ops/labels{/name}","releases_url":"https://api.github.com/repos/imagej/imagej-ops/releases{/id}","deployments_url":"https://api.github.com/repos/imagej/imagej-ops/deployments","created_at":"2014-03-07T09:19:29Z","updated_at":"2016-02-16T17:55:20Z","pushed_at":"2016-02-17T19:18:38Z","git_url":"git://github.com/imagej/imagej-ops.git","ssh_url":"git@github.com:imagej/imagej-ops.git","clone_url":"https://github.com/imagej/imagej-ops.git","svn_url":"https://github.com/imagej/imagej-ops","homepage":"http://imagej.net/Ops","size":9461,"stargazers_count":11,"watchers_count":11,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":88,"forks":16,"open_issues":88,"watchers":11,"default_branch":"master"}},"base":{"label":"imagej:master","ref":"master","sha":"f4cb34c27629f1fad33b614c9b16deaad3b60dca","user":{"login":"imagej","id":1268233,"avatar_url":"https://avatars.githubusercontent.com/u/1268233?v=3","gravatar_id":"","url":"https://api.github.com/users/imagej","html_url":"https://github.com/imagej","followers_url":"https://api.github.com/users/imagej/followers","following_url":"https://api.github.com/users/imagej/following{/other_user}","gists_url":"https://api.github.com/users/imagej/gists{/gist_id}","starred_url":"https://api.github.com/users/imagej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imagej/subscriptions","organizations_url":"https://api.github.com/users/imagej/orgs","repos_url":"https://api.github.com/users/imagej/repos","events_url":"https://api.github.com/users/imagej/events{/privacy}","received_events_url":"https://api.github.com/users/imagej/received_events","type":"Organization","site_admin":false},"repo":{"id":17508889,"name":"imagej-ops","full_name":"imagej/imagej-ops","owner":{"login":"imagej","id":1268233,"avatar_url":"https://avatars.githubusercontent.com/u/1268233?v=3","gravatar_id":"","url":"https://api.github.com/users/imagej","html_url":"https://github.com/imagej","followers_url":"https://api.github.com/users/imagej/followers","following_url":"https://api.github.com/users/imagej/following{/other_user}","gists_url":"https://api.github.com/users/imagej/gists{/gist_id}","starred_url":"https://api.github.com/users/imagej/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imagej/subscriptions","organizations_url":"https://api.github.com/users/imagej/orgs","repos_url":"https://api.github.com/users/imagej/repos","events_url":"https://api.github.com/users/imagej/events{/privacy}","received_events_url":"https://api.github.com/users/imagej/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/imagej/imagej-ops","description":"ImageJ Ops: \"Write once, run anywhere\" image processing","fork":false,"url":"https://api.github.com/repos/imagej/imagej-ops","forks_url":"https://api.github.com/repos/imagej/imagej-ops/forks","keys_url":"https://api.github.com/repos/imagej/imagej-ops/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imagej/imagej-ops/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imagej/imagej-ops/teams","hooks_url":"https://api.github.com/repos/imagej/imagej-ops/hooks","issue_events_url":"https://api.github.com/repos/imagej/imagej-ops/issues/events{/number}","events_url":"https://api.github.com/repos/imagej/imagej-ops/events","assignees_url":"https://api.github.com/repos/imagej/imagej-ops/assignees{/user}","branches_url":"https://api.github.com/repos/imagej/imagej-ops/branches{/branch}","tags_url":"https://api.github.com/repos/imagej/imagej-ops/tags","blobs_url":"https://api.github.com/repos/imagej/imagej-ops/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imagej/imagej-ops/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imagej/imagej-ops/git/refs{/sha}","trees_url":"https://api.github.com/repos/imagej/imagej-ops/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imagej/imagej-ops/statuses/{sha}","languages_url":"https://api.github.com/repos/imagej/imagej-ops/languages","stargazers_url":"https://api.github.com/repos/imagej/imagej-ops/stargazers","contributors_url":"https://api.github.com/repos/imagej/imagej-ops/contributors","subscribers_url":"https://api.github.com/repos/imagej/imagej-ops/subscribers","subscription_url":"https://api.github.com/repos/imagej/imagej-ops/subscription","commits_url":"https://api.github.com/repos/imagej/imagej-ops/commits{/sha}","git_commits_url":"https://api.github.com/repos/imagej/imagej-ops/git/commits{/sha}","comments_url":"https://api.github.com/repos/imagej/imagej-ops/comments{/number}","issue_comment_url":"https://api.github.com/repos/imagej/imagej-ops/issues/comments{/number}","contents_url":"https://api.github.com/repos/imagej/imagej-ops/contents/{+path}","compare_url":"https://api.github.com/repos/imagej/imagej-ops/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imagej/imagej-ops/merges","archive_url":"https://api.github.com/repos/imagej/imagej-ops/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imagej/imagej-ops/downloads","issues_url":"https://api.github.com/repos/imagej/imagej-ops/issues{/number}","pulls_url":"https://api.github.com/repos/imagej/imagej-ops/pulls{/number}","milestones_url":"https://api.github.com/repos/imagej/imagej-ops/milestones{/number}","notifications_url":"https://api.github.com/repos/imagej/imagej-ops/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imagej/imagej-ops/labels{/name}","releases_url":"https://api.github.com/repos/imagej/imagej-ops/releases{/id}","deployments_url":"https://api.github.com/repos/imagej/imagej-ops/deployments","created_at":"2014-03-07T09:19:29Z","updated_at":"2016-02-16T17:55:20Z","pushed_at":"2016-02-17T19:18:38Z","git_url":"git://github.com/imagej/imagej-ops.git","ssh_url":"git@github.com:imagej/imagej-ops.git","clone_url":"https://github.com/imagej/imagej-ops.git","svn_url":"https://github.com/imagej/imagej-ops","homepage":"http://imagej.net/Ops","size":9461,"stargazers_count":11,"watchers_count":11,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":88,"forks":16,"open_issues":88,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/imagej/imagej-ops/pulls/336"},"html":{"href":"https://github.com/imagej/imagej-ops/pull/336"},"issue":{"href":"https://api.github.com/repos/imagej/imagej-ops/issues/336"},"comments":{"href":"https://api.github.com/repos/imagej/imagej-ops/issues/336/comments"},"review_comments":{"href":"https://api.github.com/repos/imagej/imagej-ops/pulls/336/comments"},"review_comment":{"href":"https://api.github.com/repos/imagej/imagej-ops/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/imagej/imagej-ops/pulls/336/commits"},"statuses":{"href":"https://api.github.com/repos/imagej/imagej-ops/statuses/436c602bd5c0477f97458e2a3c64d9ca22610ac3"}}}}