{"action":"created","issue":{"url":"https://api.github.com/repos/neuropoly/spinalcordtoolbox/issues/612","labels_url":"https://api.github.com/repos/neuropoly/spinalcordtoolbox/issues/612/labels{/name}","comments_url":"https://api.github.com/repos/neuropoly/spinalcordtoolbox/issues/612/comments","events_url":"https://api.github.com/repos/neuropoly/spinalcordtoolbox/issues/612/events","html_url":"https://github.com/neuropoly/spinalcordtoolbox/issues/612","id":112651683,"number":612,"title":"resampling seems to shift the image","user":{"login":"jcohenadad","id":2482071,"avatar_url":"https://avatars.githubusercontent.com/u/2482071?v=3","gravatar_id":"","url":"https://api.github.com/users/jcohenadad","html_url":"https://github.com/jcohenadad","followers_url":"https://api.github.com/users/jcohenadad/followers","following_url":"https://api.github.com/users/jcohenadad/following{/other_user}","gists_url":"https://api.github.com/users/jcohenadad/gists{/gist_id}","starred_url":"https://api.github.com/users/jcohenadad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcohenadad/subscriptions","organizations_url":"https://api.github.com/users/jcohenadad/orgs","repos_url":"https://api.github.com/users/jcohenadad/repos","events_url":"https://api.github.com/users/jcohenadad/events{/privacy}","received_events_url":"https://api.github.com/users/jcohenadad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neuropoly/spinalcordtoolbox/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/neuropoly/spinalcordtoolbox/labels/msct_image","name":"msct_image","color":"d4c5f9"}],"state":"open","locked":false,"assignee":{"login":"SaraDupont","id":5857909,"avatar_url":"https://avatars.githubusercontent.com/u/5857909?v=3","gravatar_id":"","url":"https://api.github.com/users/SaraDupont","html_url":"https://github.com/SaraDupont","followers_url":"https://api.github.com/users/SaraDupont/followers","following_url":"https://api.github.com/users/SaraDupont/following{/other_user}","gists_url":"https://api.github.com/users/SaraDupont/gists{/gist_id}","starred_url":"https://api.github.com/users/SaraDupont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaraDupont/subscriptions","organizations_url":"https://api.github.com/users/SaraDupont/orgs","repos_url":"https://api.github.com/users/SaraDupont/repos","events_url":"https://api.github.com/users/SaraDupont/events{/privacy}","received_events_url":"https://api.github.com/users/SaraDupont/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-10-21T18:33:09Z","updated_at":"2015-11-04T16:30:10Z","closed_at":null,"body":"see below (downsampling by factor 4 along z):\r\n![output_h3a4nq](https://cloud.githubusercontent.com/assets/2482071/10646355/a58e5f94-7800-11e5-9c85-b8c0e2fc405c.gif)\r\n"},"comment":{"url":"https://api.github.com/repos/neuropoly/spinalcordtoolbox/issues/comments/153783664","html_url":"https://github.com/neuropoly/spinalcordtoolbox/issues/612#issuecomment-153783664","issue_url":"https://api.github.com/repos/neuropoly/spinalcordtoolbox/issues/612","id":153783664,"user":{"login":"SaraDupont","id":5857909,"avatar_url":"https://avatars.githubusercontent.com/u/5857909?v=3","gravatar_id":"","url":"https://api.github.com/users/SaraDupont","html_url":"https://github.com/SaraDupont","followers_url":"https://api.github.com/users/SaraDupont/followers","following_url":"https://api.github.com/users/SaraDupont/following{/other_user}","gists_url":"https://api.github.com/users/SaraDupont/gists{/gist_id}","starred_url":"https://api.github.com/users/SaraDupont/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SaraDupont/subscriptions","organizations_url":"https://api.github.com/users/SaraDupont/orgs","repos_url":"https://api.github.com/users/SaraDupont/repos","events_url":"https://api.github.com/users/SaraDupont/events{/privacy}","received_events_url":"https://api.github.com/users/SaraDupont/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T16:30:10Z","updated_at":"2015-11-04T16:30:10Z","body":"I reproduced it with a non straighten segmentation of a T2, but I don't know where it comes from: the slices values seems to match (ie the index of the first and last segmentation slice match between the original image and the resampled image taking the resampling factor into account: in the segmentation I down sampled with a factor 4, the last slice in the last segmentation slice (in axial plane) is slice # 221  and in the resampled image it's slice # 55). \r\n\r\nThe shift is more obvious with down sampling than with up sampling so maybe it's due to the approximation of the interpolation (if so, I don't se what can we  do about it)."}}