Hi,
If you just run the file through fslmaths then it should set all the
higher
dims to 1. This is the default for all files written by FSL.
All the best,
Mark
On 14 Nov 2008, at 23:40, Junqian Gordon Xu wrote:
> On 11/14/2008 02:44 PM, Buyean Lee wrote:
>> Hi,
>> Problem:
>> I am not able to open a Nifti file, created by a PET image analysis
>> program (PMOD), with my favorite image analysis program (BTW,
>> FSLView can open this Nifti file created by PMOD).
>> The author of the image analysis program sent me the following
>> messages.
>> *(the patch has been made, but it is taking time to apply this
>> patch).
>> "The issue, ...dim[1], dim[2], dim[3], and dim[4] are specified,
>> but dim[5], dim[6], and dim[7] are set to 0 instead of 1. So when
>> iterating over all the dimensions, the loop doesn't iterate."
>> One of fast way to resolve problem, I think, is to edit Nifit-1
>> header.
>> I tried 'fsledithd', but it showed only up to dim[4].
>> Does anyone know a good tool to edit Nifit-1 header (especially,
>> dim[5]-dim[7])?
>
> check out http://niftilib.sourceforge.net/
>
> Personally, pynifti works great for me. But most matlab users would
> prefer niftimatlib.
>
> Regards
> Gordon
>
|