{"action":"created","issue":{"url":"https://api.github.com/repos/stnava/ANTsR/issues/142","repository_url":"https://api.github.com/repos/stnava/ANTsR","labels_url":"https://api.github.com/repos/stnava/ANTsR/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/stnava/ANTsR/issues/142/comments","events_url":"https://api.github.com/repos/stnava/ANTsR/issues/142/events","html_url":"https://github.com/stnava/ANTsR/issues/142","id":220289881,"number":142,"title":"need to be able to specify the voxel intensity in the \"PadImage\" of iMath","user":{"login":"muratmaga","id":21285140,"avatar_url":"https://avatars3.githubusercontent.com/u/21285140?v=3","gravatar_id":"","url":"https://api.github.com/users/muratmaga","html_url":"https://github.com/muratmaga","followers_url":"https://api.github.com/users/muratmaga/followers","following_url":"https://api.github.com/users/muratmaga/following{/other_user}","gists_url":"https://api.github.com/users/muratmaga/gists{/gist_id}","starred_url":"https://api.github.com/users/muratmaga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muratmaga/subscriptions","organizations_url":"https://api.github.com/users/muratmaga/orgs","repos_url":"https://api.github.com/users/muratmaga/repos","events_url":"https://api.github.com/users/muratmaga/events{/privacy}","received_events_url":"https://api.github.com/users/muratmaga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-07T18:17:08Z","updated_at":"2017-04-07T18:54:31Z","closed_at":null,"body":"Currently it seems to be pad with 0s only. "},"comment":{"url":"https://api.github.com/repos/stnava/ANTsR/issues/comments/292622452","html_url":"https://github.com/stnava/ANTsR/issues/142#issuecomment-292622452","issue_url":"https://api.github.com/repos/stnava/ANTsR/issues/142","id":292622452,"user":{"login":"dorianps","id":9083517,"avatar_url":"https://avatars0.githubusercontent.com/u/9083517?v=3","gravatar_id":"","url":"https://api.github.com/users/dorianps","html_url":"https://github.com/dorianps","followers_url":"https://api.github.com/users/dorianps/followers","following_url":"https://api.github.com/users/dorianps/following{/other_user}","gists_url":"https://api.github.com/users/dorianps/gists{/gist_id}","starred_url":"https://api.github.com/users/dorianps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dorianps/subscriptions","organizations_url":"https://api.github.com/users/dorianps/orgs","repos_url":"https://api.github.com/users/dorianps/repos","events_url":"https://api.github.com/users/dorianps/events{/privacy}","received_events_url":"https://api.github.com/users/dorianps/received_events","type":"User","site_admin":false},"created_at":"2017-04-07T18:54:31Z","updated_at":"2017-04-07T18:54:31Z","body":"Or a function for long term use:\r\n\r\n```\r\npadImage <- function(img, layers, voxelvalue=0) {\r\ntempimg = img*0+1\r\ntempimg = iMath(tempimg, 'PadImage', layers)\r\npadimg = iMath(img, 'PadImage', layers)\r\npadimg[tempimg==0] = voxelvalue\r\nreturn(padimg)\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"dorianps"}}