{"action":"created","issue":{"url":"https://api.github.com/repos/ntayungao/Fortify/issues/2","repository_url":"https://api.github.com/repos/ntayungao/Fortify","labels_url":"https://api.github.com/repos/ntayungao/Fortify/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/ntayungao/Fortify/issues/2/comments","events_url":"https://api.github.com/repos/ntayungao/Fortify/issues/2/events","html_url":"https://github.com/ntayungao/Fortify/issues/2","id":305796769,"number":2,"title":"Source Code for Color Histogram","user":{"login":"ntayungao","id":22852608,"avatar_url":"https://avatars3.githubusercontent.com/u/22852608?v=4","gravatar_id":"","url":"https://api.github.com/users/ntayungao","html_url":"https://github.com/ntayungao","followers_url":"https://api.github.com/users/ntayungao/followers","following_url":"https://api.github.com/users/ntayungao/following{/other_user}","gists_url":"https://api.github.com/users/ntayungao/gists{/gist_id}","starred_url":"https://api.github.com/users/ntayungao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntayungao/subscriptions","organizations_url":"https://api.github.com/users/ntayungao/orgs","repos_url":"https://api.github.com/users/ntayungao/repos","events_url":"https://api.github.com/users/ntayungao/events{/privacy}","received_events_url":"https://api.github.com/users/ntayungao/received_events","type":"User","site_admin":false},"labels":[{"id":860971305,"url":"https://api.github.com/repos/ntayungao/Fortify/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":{"login":"jrcruz2","id":22384963,"avatar_url":"https://avatars1.githubusercontent.com/u/22384963?v=4","gravatar_id":"","url":"https://api.github.com/users/jrcruz2","html_url":"https://github.com/jrcruz2","followers_url":"https://api.github.com/users/jrcruz2/followers","following_url":"https://api.github.com/users/jrcruz2/following{/other_user}","gists_url":"https://api.github.com/users/jrcruz2/gists{/gist_id}","starred_url":"https://api.github.com/users/jrcruz2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrcruz2/subscriptions","organizations_url":"https://api.github.com/users/jrcruz2/orgs","repos_url":"https://api.github.com/users/jrcruz2/repos","events_url":"https://api.github.com/users/jrcruz2/events{/privacy}","received_events_url":"https://api.github.com/users/jrcruz2/received_events","type":"User","site_admin":false},"assignees":[{"login":"jrcruz2","id":22384963,"avatar_url":"https://avatars1.githubusercontent.com/u/22384963?v=4","gravatar_id":"","url":"https://api.github.com/users/jrcruz2","html_url":"https://github.com/jrcruz2","followers_url":"https://api.github.com/users/jrcruz2/followers","following_url":"https://api.github.com/users/jrcruz2/following{/other_user}","gists_url":"https://api.github.com/users/jrcruz2/gists{/gist_id}","starred_url":"https://api.github.com/users/jrcruz2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrcruz2/subscriptions","organizations_url":"https://api.github.com/users/jrcruz2/orgs","repos_url":"https://api.github.com/users/jrcruz2/repos","events_url":"https://api.github.com/users/jrcruz2/events{/privacy}","received_events_url":"https://api.github.com/users/jrcruz2/received_events","type":"User","site_admin":false},{"login":"ntayungao","id":22852608,"avatar_url":"https://avatars3.githubusercontent.com/u/22852608?v=4","gravatar_id":"","url":"https://api.github.com/users/ntayungao","html_url":"https://github.com/ntayungao","followers_url":"https://api.github.com/users/ntayungao/followers","following_url":"https://api.github.com/users/ntayungao/following{/other_user}","gists_url":"https://api.github.com/users/ntayungao/gists{/gist_id}","starred_url":"https://api.github.com/users/ntayungao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntayungao/subscriptions","organizations_url":"https://api.github.com/users/ntayungao/orgs","repos_url":"https://api.github.com/users/ntayungao/repos","events_url":"https://api.github.com/users/ntayungao/events{/privacy}","received_events_url":"https://api.github.com/users/ntayungao/received_events","type":"User","site_admin":false},{"login":"VincentJunior4253","id":32087513,"avatar_url":"https://avatars2.githubusercontent.com/u/32087513?v=4","gravatar_id":"","url":"https://api.github.com/users/VincentJunior4253","html_url":"https://github.com/VincentJunior4253","followers_url":"https://api.github.com/users/VincentJunior4253/followers","following_url":"https://api.github.com/users/VincentJunior4253/following{/other_user}","gists_url":"https://api.github.com/users/VincentJunior4253/gists{/gist_id}","starred_url":"https://api.github.com/users/VincentJunior4253/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VincentJunior4253/subscriptions","organizations_url":"https://api.github.com/users/VincentJunior4253/orgs","repos_url":"https://api.github.com/users/VincentJunior4253/repos","events_url":"https://api.github.com/users/VincentJunior4253/events{/privacy}","received_events_url":"https://api.github.com/users/VincentJunior4253/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-03-16T04:12:01Z","updated_at":"2018-03-16T04:15:17Z","closed_at":null,"author_association":"OWNER","body":"import java.awt.image.BufferedImage;\r\nimport java.io.File;\r\n\r\nimport javax.imageio.ImageIO;\r\n\r\npublic class Main {\r\n    public static void main(String[] args) throws Exception {\r\n        int[][][] ch = new int[4][4][4];\r\n        BufferedImage image = ImageIO.read(new File(\"kot.jpg\"));\r\n        for(int x = 0; x < image.getWidth(); x++)\r\n            for(int y = 0; y < image.getHeight(); y++) {\r\n                int color = image.getRGB(x, y);\r\n                int alpha = (color & 0xff000000) >> 24;\r\n                int red = (color & 0x00ff0000) >> 16;\r\n                int green = (color & 0x0000ff00) >> 8;\r\n                int blue = color & 0x000000ff;\r\n                ch[red / 64][green / 64][blue / 64]++;\r\n            }\r\n        for(int i = 0; i < ch.length; i++)\r\n            for(int j = 0; j < ch[i].length; j++)\r\n                for(int p = 0; p < ch[i][j].length; p++)\r\n                    System.out.println(\"t[\" + i + \"][\" + j + \"][\" + p + \"] = \" + ch[i][j][p]);"},"comment":{"url":"https://api.github.com/repos/ntayungao/Fortify/issues/comments/373598583","html_url":"https://github.com/ntayungao/Fortify/issues/2#issuecomment-373598583","issue_url":"https://api.github.com/repos/ntayungao/Fortify/issues/2","id":373598583,"user":{"login":"ntayungao","id":22852608,"avatar_url":"https://avatars3.githubusercontent.com/u/22852608?v=4","gravatar_id":"","url":"https://api.github.com/users/ntayungao","html_url":"https://github.com/ntayungao","followers_url":"https://api.github.com/users/ntayungao/followers","following_url":"https://api.github.com/users/ntayungao/following{/other_user}","gists_url":"https://api.github.com/users/ntayungao/gists{/gist_id}","starred_url":"https://api.github.com/users/ntayungao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ntayungao/subscriptions","organizations_url":"https://api.github.com/users/ntayungao/orgs","repos_url":"https://api.github.com/users/ntayungao/repos","events_url":"https://api.github.com/users/ntayungao/events{/privacy}","received_events_url":"https://api.github.com/users/ntayungao/received_events","type":"User","site_admin":false},"created_at":"2018-03-16T04:15:17Z","updated_at":"2018-03-16T04:15:17Z","author_association":"OWNER","body":"Java Image Colors Frequencies Histogram\r\nhttps://www.codemiles.com/java-examples/image-colors-frequencies-histogram-in-java-t10947.html"}}
{"actor":{"display_login":"ntayungao"}}