How does AimsFIleConvert support nifti files ?
Posted: Mon Feb 01, 2010 4:45 pm
Hi all,
I would like to use AimsFileInfo in a pipeline of routines outside BrainVISA.
I would like to convert a Nifti file xxxx.nii to Analyze format xxxx.img/.hdr.
If I run
. "PathTo/brainvisa32/bin/cartopack.sh"
PathTo/brainvisa32/bin/command-links/AimsFileConvert -i xxxx.nii -o xxxx.img
it works.
Now if I put PathTo/brainvisa32/bin/command-links/AimsFileConvert in a separate directory DIR, together with its dependencies (shared librairies found with 'ldd' command : libaimsdata.so.3.2, libgraph.so.3.2, libcartodata.so.3.2, libcartobase.so.3.2, libcartobase_1.so.3.2, libcartobase_0.so.3.2, and others that are system libraries)
and then I use
export LD_LIBRARY_PATH=DIR:$LD_LIBRARY_PATH
DIR/AimsFileConvert -i xxxx.nii -o xxxx.img
I get an error
./AimsFileConvert: xxxx.nii : invalid format (not handled)
So what am I missing and where does AimsFileConvert get the information about supporting nifti files ?
Thanks a lot for your help
Melanie
I would like to use AimsFileInfo in a pipeline of routines outside BrainVISA.
I would like to convert a Nifti file xxxx.nii to Analyze format xxxx.img/.hdr.
If I run
. "PathTo/brainvisa32/bin/cartopack.sh"
PathTo/brainvisa32/bin/command-links/AimsFileConvert -i xxxx.nii -o xxxx.img
it works.
Now if I put PathTo/brainvisa32/bin/command-links/AimsFileConvert in a separate directory DIR, together with its dependencies (shared librairies found with 'ldd' command : libaimsdata.so.3.2, libgraph.so.3.2, libcartodata.so.3.2, libcartobase.so.3.2, libcartobase_1.so.3.2, libcartobase_0.so.3.2, and others that are system libraries)
and then I use
export LD_LIBRARY_PATH=DIR:$LD_LIBRARY_PATH
DIR/AimsFileConvert -i xxxx.nii -o xxxx.img
I get an error
./AimsFileConvert: xxxx.nii : invalid format (not handled)
So what am I missing and where does AimsFileConvert get the information about supporting nifti files ?
Thanks a lot for your help
Melanie