Export the sources to SPM and the Volume downsample factor

Hello!

I'm trying to export the sources to SPM.
There were something wrong with the nii files when I set the Volume downsample factor to 2 or 3.

I used the mricron and overlayed the nii file on ch2better.nii.gz. I also used spm12 to do statistical analysis.
It seems that the sources is not aligned with the template.
See screen captures below,
export|427x500

Everything works well when I set the Volume downsample factor to 1.

Thanks a lot!
Best,
Xuena

Hello

Indeed, the registration was not kept when downsampling the exported volumes.
I added code to handle this volume resampling: https://github.com/brainstorm-tools/brainstorm3/commit/af319bba8edf8bdc84af9e8e9d4c23d636594d19#diff-e4f132a86829cb18a089630e03fbdb8f

Please update Brainstorm (menu Update >Update Brainstorm) and try again.
Be careful with these registration issues with the downsampled volumes exported from Brainstorm. there might be other issues that haven’t been reported yet. Let us know if you observe anything suspicious.

Thanks,
Francois

Hello Francois,

Thank you for the reply.
I downloaded the latest brainstorm, but there still seemed to be a problem.

When I set the Volume downsample factor to 2 or 3, I got this error report.

Best,
Xuena

I’m sorry, I’m not sure why you get this error, it means that the fiducial definition is incomplete, or not defined as expected.
Anyway, I made the code more robust to different fiducials configurations: https://github.com/brainstorm-tools/brainstorm3/commit/87f67186853f143197335f6c6829bb344d291b7b

Please update Brainstorm and try again.

Now everything works well!
Many thanks!

Xuena