[Camino-users] Datasynth to nifti
Philip A Cook
cookpa at mail.med.upenn.edu
Thu Jan 30 08:45:02 PST 2014
Yes, you can add
-datadims 1 1 1 -voxeldims 1 1 1 -outputfile data.nii.gz
to the call to datasynth.
This gives you a bare-bones NIfTI header with the specified dimensions.
Alternatively,
cat awesomeVoxel.Bfloat | voxel2image -inputdatatype float -datadims 1 1 1 -voxeldims 1 1 1 -components ${COMPONENTS} -outputvector -gzip -outputroot awesomeVoxel
where you have ${COMPONENTS} measurements in your DWI data.
On Jan 30, 2014, at 7:02 AM, Andrés Méndez <andres.mendezg at gmail.com> wrote:
> Hello, I have a question that might result to be too basic.
>
> Is there a straightforward way to save a data simulation (with datasynth) in Nifti format?
>
> Let's say I simulate a single beautiful voxel and have "awesomevoxel.Bfloat" as a result. Do I need to specify all the attributes of the Nifti header or is there an automatic nifti saving routine?
>
> Thanks
>
>
> _______________________________________________
>
> _______________________________________________
> Camino-users mailing list
> Camino-users at www.nitrc.org
> http://www.nitrc.org/mailman/listinfo/camino-users
More information about the Camino-users
mailing list