Re: SaveParamsAsNIfTI error

45 views
Skip to first unread message

Hui Zhang

unread,
May 28, 2022, 7:22:13 AM5/28/22
to no...@googlegroups.com
Hi Laura,

Did you experience the same problem with the provided example data?

Gary

On Wed, 11 May 2022 at 22:30, Laura <lauraj...@gmail.com> wrote:
Hi all,

currently running the NODDI toolbox on my data and everything seemed to be going well, except for the last step;

>> SaveParamsAsNIfTI('FittedParams.mat', 'NODDI_roi.mat', 'brain_mask.hdr', 'test')
loading the fitted parameters from : FittedParams.mat
loading the roi from : NODDI_roi.mat
loading the target volume : brain_mask.hdr
converting the fitted parameters into volumetric maps ...
Saving the volumetric maps of the fitted parameters ...
Error using reshape
Number of elements must not change. Use [ ] as one of the size inputs to automatically calculate the
appropriate size for that dimension.

Error in SaveParamsAsNIfTI (line 161)
    SaveAsNIfTI(reshape(squeeze(vols(:,i)), [xsize ysize zsize]), niftiSpecs, output);
 
The batch_fitting_single finished, number of voxels seemed to match the number of voxels of the roi.

Any advise?

Many thanks!
Laura

--
You received this message because you are subscribed to the Google Groups "NODDI" group.
To unsubscribe from this group and stop receiving emails from it, send an email to noddi+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/noddi/08813220-2978-445a-ab75-08301ee05961n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages