{"action":"closed","issue":{"url":"https://api.github.com/repos/DDMAL/Rodan/issues/225","repository_url":"https://api.github.com/repos/DDMAL/Rodan","labels_url":"https://api.github.com/repos/DDMAL/Rodan/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/DDMAL/Rodan/issues/225/comments","events_url":"https://api.github.com/repos/DDMAL/Rodan/issues/225/events","html_url":"https://github.com/DDMAL/Rodan/issues/225","id":16597903,"number":225,"title":"Job required: Gatos binarization (Steps required for Gatos Threshold binarization)","user":{"login":"timwilfong","id":4247746,"avatar_url":"https://avatars.githubusercontent.com/u/4247746?v=3","gravatar_id":"","url":"https://api.github.com/users/timwilfong","html_url":"https://github.com/timwilfong","followers_url":"https://api.github.com/users/timwilfong/followers","following_url":"https://api.github.com/users/timwilfong/following{/other_user}","gists_url":"https://api.github.com/users/timwilfong/gists{/gist_id}","starred_url":"https://api.github.com/users/timwilfong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timwilfong/subscriptions","organizations_url":"https://api.github.com/users/timwilfong/orgs","repos_url":"https://api.github.com/users/timwilfong/repos","events_url":"https://api.github.com/users/timwilfong/events{/privacy}","received_events_url":"https://api.github.com/users/timwilfong/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/DDMAL/Rodan/labels/Location:%20Job%20package","name":"Location: Job package","color":"207de5"},{"url":"https://api.github.com/repos/DDMAL/Rodan/labels/Type:%20Feature","name":"Type: Feature","color":"02e10c"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/DDMAL/Rodan/milestones/14","html_url":"https://github.com/DDMAL/Rodan/milestones/Someday","labels_url":"https://api.github.com/repos/DDMAL/Rodan/milestones/14/labels","id":1312597,"number":14,"title":"Someday","description":"","creator":{"login":"ahankinson","id":163183,"avatar_url":"https://avatars.githubusercontent.com/u/163183?v=3","gravatar_id":"","url":"https://api.github.com/users/ahankinson","html_url":"https://github.com/ahankinson","followers_url":"https://api.github.com/users/ahankinson/followers","following_url":"https://api.github.com/users/ahankinson/following{/other_user}","gists_url":"https://api.github.com/users/ahankinson/gists{/gist_id}","starred_url":"https://api.github.com/users/ahankinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahankinson/subscriptions","organizations_url":"https://api.github.com/users/ahankinson/orgs","repos_url":"https://api.github.com/users/ahankinson/repos","events_url":"https://api.github.com/users/ahankinson/events{/privacy}","received_events_url":"https://api.github.com/users/ahankinson/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":3,"state":"open","created_at":"2015-09-18T10:31:57Z","updated_at":"2016-05-13T16:30:23Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2013-07-10T20:07:54Z","updated_at":"2016-05-13T16:30:23Z","closed_at":"2016-05-13T16:30:23Z","body":"In order to do the Gatos Threshold binarization method, there are multiple images needed. Currently, there is no way to do this in a single workflow in Rodin. Here are the steps currently needed to run the algorithm in Gamera:\r\n\r\nImages required to begin:\r\n- greyscale image\r\n- previously binarization of image using another algorithm (Rodin should allow user to select a binarization method)\r\n\r\n1. gatos_background of greyscale image\r\n--needs previous binarization\r\n\r\n2. gatos_threshold of original greyscale image\r\n--needs gatos_background file\r\n--needs previous binarization\r\n\r\n\r\nFor example, see code used below:\r\n```python\r\n>>> image0 = load_image(r\"/Users/timwilfong/Documents/St_Gallen_Local/PNG/0390/csg-0390_014.png\")\r\n>>> \r\n>>> djvu0 = image0.djvu_threshold(0.2, 512, 64, 2)\r\n>>> \r\n>>> greyscale0 = image0.to_greyscale()\r\n>>> \r\n>>> greyscale0.display(\"greyscale0\")\r\n<ImageFrame Window>\r\n>>> \r\n>>> gatosbackground0 = greyscale0.gatos_background(djvu0, 15)\r\n>>> \r\n>>> gatosbackground0.display(\"gatosbackground0\")\r\n<ImageFrame Window>\r\n>>> \r\n>>> gatosthreshold0 = greyscale0.gatos_threshold(gatosbackground0, djvu0, 0.6, 0.5, 0.8)\r\n```"}}