{"action":"closed","issue":{"url":"https://api.github.com/repos/stnava/ANTsR/issues/71","labels_url":"https://api.github.com/repos/stnava/ANTsR/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/stnava/ANTsR/issues/71/comments","events_url":"https://api.github.com/repos/stnava/ANTsR/issues/71/events","html_url":"https://github.com/stnava/ANTsR/issues/71","id":126965690,"number":71,"title":"ANTsR antsRegistration command with SyNBold","user":{"login":"BrysonBR","id":12836123,"avatar_url":"https://avatars.githubusercontent.com/u/12836123?v=3","gravatar_id":"","url":"https://api.github.com/users/BrysonBR","html_url":"https://github.com/BrysonBR","followers_url":"https://api.github.com/users/BrysonBR/followers","following_url":"https://api.github.com/users/BrysonBR/following{/other_user}","gists_url":"https://api.github.com/users/BrysonBR/gists{/gist_id}","starred_url":"https://api.github.com/users/BrysonBR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrysonBR/subscriptions","organizations_url":"https://api.github.com/users/BrysonBR/orgs","repos_url":"https://api.github.com/users/BrysonBR/repos","events_url":"https://api.github.com/users/BrysonBR/events{/privacy}","received_events_url":"https://api.github.com/users/BrysonBR/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-15T21:52:23Z","updated_at":"2016-01-17T00:42:54Z","closed_at":"2016-01-17T00:42:54Z","body":"I am trying to register my BOLD images to the subject's T1 image.\r\nI called the following three lines:\r\n> moving<-antsImageRead(\"BOLD.nii.gz\")\r\n> fixed<-antsImageRead(\"T1_Brain.nii.gz\")\r\n> antsRegistration(fixed=fixed, moving=moving, typeofTransform=\"SyNBold\")\r\n\r\nAnd received this error:\r\n    Exception Object caught: \r\n    \r\n    itk::ExceptionObject (0x7ff7b6e038c8)\r\n    Location: \"unknown\" \r\n    File: /usr/local/lib/R/3.2/site-library/ITKR/libs/include/ITK-4.9/itkImageMomentsCalculator.hxx\r\n    Line: 156\r\n    Description: itk::ERROR: ImageMomentsCalculator(0x7ff7b6e03630): Compute(): Total Mass of the image was zero. Aborting here to prevent division by zero later on.\r\n    \r\n    \r\n    $warpedmovout\r\n    antsImage\r\n      Pixel Type          : float \r\n      Components Per Pixel: 1 \r\n      Dimensions          : 176x256x256 \r\n      Voxel Spacing       : 1x0.9765625x0.976562440395355 \r\n      Origin              : 91.01056 107.6796 -135.8272 \r\n      Direction           : -0.9990482 0 -0.04361939 0 -1 0 -0.04361939 0 0.9990482 \r\n    \r\n    \r\n    $warpedfixout\r\n    antsImage\r\n      Pixel Type          : float \r\n      Components Per Pixel: 1 \r\n      Dimensions          : 64x64x44x470 \r\n      Voxel Spacing       : 3x3x3.75x1 \r\n      Origin              : -95.88672 85.799 -73.52123 0 \r\n      Direction           : 0.9990482 1.726682e-05 0.04362019 0 -2.511333e-08 -0.9999999 0.0003964198 0 -0.04362019 0.0003960436 0.9990481 0 0 0 0 1 \r\n    \r\n    \r\n    $fwdtransforms\r\n    [1] \"/var/folders/0b/8wcfvfbd0dn4ljdrtqp_6zfh0000gp/T//RtmpdtrQ6M/file26be3e2040f1Warp.nii.gz\"      \r\n    [2] \"/var/folders/0b/8wcfvfbd0dn4ljdrtqp_6zfh0000gp/T//RtmpdtrQ6M/file26be3e2040f0GenericAffine.mat\"\r\n    \r\n    $invtransforms\r\n    [1] \"/var/folders/0b/8wcfvfbd0dn4ljdrtqp_6zfh0000gp/T//RtmpdtrQ6M/file26be3e2040f0GenericAffine.mat\" \r\n    [2] \"/var/folders/0b/8wcfvfbd0dn4ljdrtqp_6zfh0000gp/T//RtmpdtrQ6M/file26be3e2040f1InverseWarp.nii.gz\"\r\n\r\nThe files that I used are in here:\r\nhttps://drive.google.com/file/d/0B9oWACI5TJOEeU9hRUVLWDFXUkk/view?usp=sharing\r\nhttps://drive.google.com/file/d/0B9oWACI5TJOEY2pxNWpOS3ZseEk/view?usp=sharing\r\n\r\nAm I doing something wrong?\r\n"}}