{"action":"created","comment":{"url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls/comments/184839030","pull_request_review_id":116120654,"id":184839030,"diff_hunk":"@@ -2,64 +2,74 @@\n \n import domain.customimage.CustomImage;\n import domain.filter.Mask;\n-import javafx.scene.image.WritableImage;\n-import javafx.scene.paint.Color;\n+\n import java.util.ArrayList;\n import java.util.List;\n \n public class MaskService {\n \n+    public int[][] applyFilter(CustomImage customImage, Mask mask) {\n+        Integer width = customImage.getWidth();\n+        Integer height = customImage.getHeight();\n+        int[][] filteredMatrix = new int[width][height];\n+\n+        for (int y = 0; y < height; y++) {\n+            for (int x = 0; x < width; x++) {\n+                filteredMatrix[x][y] = mask.apply(customImage, x, y);\n+            }\n+        }\n+        return filteredMatrix;\n+    }\n+\n     //Here, x and y are the coordinates of the point where the mask's center is currently standing\n-    public void applyMeanMask(CustomImage image, WritableImage filteredImage, Mask mask, int x, int y) {\n+    public static int applyMeanMask(CustomImage image, Mask mask, int x, int y) {","path":"src/core/service/MaskService.java","position":27,"original_position":27,"commit_id":"5418388c26cf8bd4f6e062a9f714e2eb019c89c4","original_commit_id":"5418388c26cf8bd4f6e062a9f714e2eb019c89c4","user":{"login":"SynysterLove","id":11827642,"avatar_url":"https://avatars0.githubusercontent.com/u/11827642?v=4","gravatar_id":"","url":"https://api.github.com/users/SynysterLove","html_url":"https://github.com/SynysterLove","followers_url":"https://api.github.com/users/SynysterLove/followers","following_url":"https://api.github.com/users/SynysterLove/following{/other_user}","gists_url":"https://api.github.com/users/SynysterLove/gists{/gist_id}","starred_url":"https://api.github.com/users/SynysterLove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SynysterLove/subscriptions","organizations_url":"https://api.github.com/users/SynysterLove/orgs","repos_url":"https://api.github.com/users/SynysterLove/repos","events_url":"https://api.github.com/users/SynysterLove/events{/privacy}","received_events_url":"https://api.github.com/users/SynysterLove/received_events","type":"User","site_admin":false},"body":"Esto es estático por algun motivo o es como la china?","created_at":"2018-04-28T04:04:38Z","updated_at":"2018-04-28T04:04:38Z","html_url":"https://github.com/SynysterLove/ProcesamientoImagenes/pull/38#discussion_r184839030","pull_request_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls/38","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls/comments/184839030"},"html":{"href":"https://github.com/SynysterLove/ProcesamientoImagenes/pull/38#discussion_r184839030"},"pull_request":{"href":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls/38","id":184221111,"html_url":"https://github.com/SynysterLove/ProcesamientoImagenes/pull/38","diff_url":"https://github.com/SynysterLove/ProcesamientoImagenes/pull/38.diff","patch_url":"https://github.com/SynysterLove/ProcesamientoImagenes/pull/38.patch","issue_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/issues/38","number":38,"state":"open","locked":false,"title":"Refactor","user":{"login":"JulianMoreno2","id":14829924,"avatar_url":"https://avatars0.githubusercontent.com/u/14829924?v=4","gravatar_id":"","url":"https://api.github.com/users/JulianMoreno2","html_url":"https://github.com/JulianMoreno2","followers_url":"https://api.github.com/users/JulianMoreno2/followers","following_url":"https://api.github.com/users/JulianMoreno2/following{/other_user}","gists_url":"https://api.github.com/users/JulianMoreno2/gists{/gist_id}","starred_url":"https://api.github.com/users/JulianMoreno2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JulianMoreno2/subscriptions","organizations_url":"https://api.github.com/users/JulianMoreno2/orgs","repos_url":"https://api.github.com/users/JulianMoreno2/repos","events_url":"https://api.github.com/users/JulianMoreno2/events{/privacy}","received_events_url":"https://api.github.com/users/JulianMoreno2/received_events","type":"User","site_admin":false},"body":"- Filters applications\r\n- Prewitt\r\n- Masks","created_at":"2018-04-26T04:06:33Z","updated_at":"2018-04-28T04:04:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe0d31e8a7f0c4137be94ddb6143a7187eb488cb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls/38/commits","review_comments_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls/38/comments","review_comment_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/issues/38/comments","statuses_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/statuses/5418388c26cf8bd4f6e062a9f714e2eb019c89c4","head":{"label":"SynysterLove:refactor","ref":"refactor","sha":"5418388c26cf8bd4f6e062a9f714e2eb019c89c4","user":{"login":"SynysterLove","id":11827642,"avatar_url":"https://avatars0.githubusercontent.com/u/11827642?v=4","gravatar_id":"","url":"https://api.github.com/users/SynysterLove","html_url":"https://github.com/SynysterLove","followers_url":"https://api.github.com/users/SynysterLove/followers","following_url":"https://api.github.com/users/SynysterLove/following{/other_user}","gists_url":"https://api.github.com/users/SynysterLove/gists{/gist_id}","starred_url":"https://api.github.com/users/SynysterLove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SynysterLove/subscriptions","organizations_url":"https://api.github.com/users/SynysterLove/orgs","repos_url":"https://api.github.com/users/SynysterLove/repos","events_url":"https://api.github.com/users/SynysterLove/events{/privacy}","received_events_url":"https://api.github.com/users/SynysterLove/received_events","type":"User","site_admin":false},"repo":{"id":115046843,"name":"ProcesamientoImagenes","full_name":"SynysterLove/ProcesamientoImagenes","owner":{"login":"SynysterLove","id":11827642,"avatar_url":"https://avatars0.githubusercontent.com/u/11827642?v=4","gravatar_id":"","url":"https://api.github.com/users/SynysterLove","html_url":"https://github.com/SynysterLove","followers_url":"https://api.github.com/users/SynysterLove/followers","following_url":"https://api.github.com/users/SynysterLove/following{/other_user}","gists_url":"https://api.github.com/users/SynysterLove/gists{/gist_id}","starred_url":"https://api.github.com/users/SynysterLove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SynysterLove/subscriptions","organizations_url":"https://api.github.com/users/SynysterLove/orgs","repos_url":"https://api.github.com/users/SynysterLove/repos","events_url":"https://api.github.com/users/SynysterLove/events{/privacy}","received_events_url":"https://api.github.com/users/SynysterLove/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SynysterLove/ProcesamientoImagenes","description":null,"fork":false,"url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes","forks_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/forks","keys_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/teams","hooks_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/hooks","issue_events_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/issues/events{/number}","events_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/events","assignees_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/assignees{/user}","branches_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/branches{/branch}","tags_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/tags","blobs_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/git/refs{/sha}","trees_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/statuses/{sha}","languages_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/languages","stargazers_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/stargazers","contributors_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/contributors","subscribers_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/subscribers","subscription_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/subscription","commits_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/commits{/sha}","git_commits_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/git/commits{/sha}","comments_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/comments{/number}","issue_comment_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/issues/comments{/number}","contents_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/contents/{+path}","compare_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/merges","archive_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/downloads","issues_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/issues{/number}","pulls_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls{/number}","milestones_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/milestones{/number}","notifications_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/labels{/name}","releases_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/releases{/id}","deployments_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/deployments","created_at":"2017-12-21T21:02:53Z","updated_at":"2018-04-26T01:59:38Z","pushed_at":"2018-04-26T04:06:34Z","git_url":"git://github.com/SynysterLove/ProcesamientoImagenes.git","ssh_url":"git@github.com:SynysterLove/ProcesamientoImagenes.git","clone_url":"https://github.com/SynysterLove/ProcesamientoImagenes.git","svn_url":"https://github.com/SynysterLove/ProcesamientoImagenes","homepage":null,"size":2197,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"SynysterLove:master","ref":"master","sha":"3c60575035e28f94e6915e30ba79df6ce7b13b84","user":{"login":"SynysterLove","id":11827642,"avatar_url":"https://avatars0.githubusercontent.com/u/11827642?v=4","gravatar_id":"","url":"https://api.github.com/users/SynysterLove","html_url":"https://github.com/SynysterLove","followers_url":"https://api.github.com/users/SynysterLove/followers","following_url":"https://api.github.com/users/SynysterLove/following{/other_user}","gists_url":"https://api.github.com/users/SynysterLove/gists{/gist_id}","starred_url":"https://api.github.com/users/SynysterLove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SynysterLove/subscriptions","organizations_url":"https://api.github.com/users/SynysterLove/orgs","repos_url":"https://api.github.com/users/SynysterLove/repos","events_url":"https://api.github.com/users/SynysterLove/events{/privacy}","received_events_url":"https://api.github.com/users/SynysterLove/received_events","type":"User","site_admin":false},"repo":{"id":115046843,"name":"ProcesamientoImagenes","full_name":"SynysterLove/ProcesamientoImagenes","owner":{"login":"SynysterLove","id":11827642,"avatar_url":"https://avatars0.githubusercontent.com/u/11827642?v=4","gravatar_id":"","url":"https://api.github.com/users/SynysterLove","html_url":"https://github.com/SynysterLove","followers_url":"https://api.github.com/users/SynysterLove/followers","following_url":"https://api.github.com/users/SynysterLove/following{/other_user}","gists_url":"https://api.github.com/users/SynysterLove/gists{/gist_id}","starred_url":"https://api.github.com/users/SynysterLove/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SynysterLove/subscriptions","organizations_url":"https://api.github.com/users/SynysterLove/orgs","repos_url":"https://api.github.com/users/SynysterLove/repos","events_url":"https://api.github.com/users/SynysterLove/events{/privacy}","received_events_url":"https://api.github.com/users/SynysterLove/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SynysterLove/ProcesamientoImagenes","description":null,"fork":false,"url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes","forks_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/forks","keys_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/teams","hooks_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/hooks","issue_events_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/issues/events{/number}","events_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/events","assignees_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/assignees{/user}","branches_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/branches{/branch}","tags_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/tags","blobs_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/git/refs{/sha}","trees_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/statuses/{sha}","languages_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/languages","stargazers_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/stargazers","contributors_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/contributors","subscribers_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/subscribers","subscription_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/subscription","commits_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/commits{/sha}","git_commits_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/git/commits{/sha}","comments_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/comments{/number}","issue_comment_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/issues/comments{/number}","contents_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/contents/{+path}","compare_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/merges","archive_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/downloads","issues_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/issues{/number}","pulls_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls{/number}","milestones_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/milestones{/number}","notifications_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/labels{/name}","releases_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/releases{/id}","deployments_url":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/deployments","created_at":"2017-12-21T21:02:53Z","updated_at":"2018-04-26T01:59:38Z","pushed_at":"2018-04-26T04:06:34Z","git_url":"git://github.com/SynysterLove/ProcesamientoImagenes.git","ssh_url":"git@github.com:SynysterLove/ProcesamientoImagenes.git","clone_url":"https://github.com/SynysterLove/ProcesamientoImagenes.git","svn_url":"https://github.com/SynysterLove/ProcesamientoImagenes","homepage":null,"size":2197,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls/38"},"html":{"href":"https://github.com/SynysterLove/ProcesamientoImagenes/pull/38"},"issue":{"href":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/issues/38"},"comments":{"href":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/SynysterLove/ProcesamientoImagenes/statuses/5418388c26cf8bd4f6e062a9f714e2eb019c89c4"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"SynysterLove"}}