{"action":"opened","issue":{"url":"https://api.github.com/repos/MRtrix3/mrtrix3/issues/433","labels_url":"https://api.github.com/repos/MRtrix3/mrtrix3/issues/433/labels{/name}","comments_url":"https://api.github.com/repos/MRtrix3/mrtrix3/issues/433/comments","events_url":"https://api.github.com/repos/MRtrix3/mrtrix3/issues/433/events","html_url":"https://github.com/MRtrix3/mrtrix3/issues/433","id":124564800,"number":433,"title":"overwrite same image with mrconvert results in an empty image","user":{"login":"maxpietsch","id":10046944,"avatar_url":"https://avatars.githubusercontent.com/u/10046944?v=3","gravatar_id":"","url":"https://api.github.com/users/maxpietsch","html_url":"https://github.com/maxpietsch","followers_url":"https://api.github.com/users/maxpietsch/followers","following_url":"https://api.github.com/users/maxpietsch/following{/other_user}","gists_url":"https://api.github.com/users/maxpietsch/gists{/gist_id}","starred_url":"https://api.github.com/users/maxpietsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxpietsch/subscriptions","organizations_url":"https://api.github.com/users/maxpietsch/orgs","repos_url":"https://api.github.com/users/maxpietsch/repos","events_url":"https://api.github.com/users/maxpietsch/events{/privacy}","received_events_url":"https://api.github.com/users/maxpietsch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/MRtrix3/mrtrix3/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-01T22:37:10Z","updated_at":"2016-01-01T22:37:10Z","closed_at":null,"body":"`mrconvert -axes 0,1,2 image.mif image.mif -datatype float32 -force && mrview image.mif`\r\n\r\nproduces an empty image (all zero).\r\n\r\n`mrconvert -axes 0,1,2 image.mif tmp.mif -datatype float32  && mrview tmp.mif`\r\n\r\nwoks.\r\n\r\n## before in-place mrconvert:\r\n\r\n`mrinfo image.mif`\r\n\r\n~~~~\r\n  Format:            MRtrix\r\n  Dimensions:        96 x 96 x 60 x 1\r\n  Voxel size:        2.5 x 2.5 x 2.5 x 1\r\n  Data type:         32 bit float (little endian)\r\n  Data strides:      [ 1 3 4 2 ]\r\n  Intensity scaling: offset = 0, multiplier = 1\r\n~~~~\r\n\r\n## after in-place conversion:\r\n\r\n~~~~\r\n  Format:            MRtrix\r\n  Dimensions:        96 x 96 x 60\r\n  Voxel size:        2.5 x 2.5 x 2.5\r\n  Data type:         32 bit float (little endian)\r\n  Data strides:      [ 1 2 3 ]\r\n  Intensity scaling: offset = 0, multiplier = 1\r\n ~~~~\r\n\r\n`mrstats image.mif`\r\n~~~~\r\n        channel         mean       median    std. dev.          min          max       count\r\n         [ 0 ]             0            0            0            0            0       552960\r\n~~~~"}}