Dear Darren,
We often have a problem with SPM storing NaNs in their files
which the FSL tools are not happy with. Try running the image
through fslmaths with the -nan option to remove the NaNs and
then see if FSLView is happy with the result.
All the best,
Mark
On 20 Oct 2010, at 02:43, Darren G. wrote:
> Hi
>
> I am running fslview 3.1.8 on Ubuntu 10.10 (but note the same
> problem occurred on 9.04).
> When I try to open a nifti image created by SPM8, after showing the
> splashscreen, fslview immediately quits and gives this error
>
> fslview: //usr/include/boost/smart_ptr/shared_ptr.hpp:418: T*
> boost::shared_ptr< <template-parameter-1-1> >::operator->() const
> [with T = OverlayList]: Assertion `px != 0' failed.
> Aborted
>
> However, if I run the image through fswapdim without actually
> changing the axes (i.e., choose the same axis orientation) the new
> image will open in fslview.
> What appears to have changed is that the datatype goes from UINT16
> to FLOAT32, scl_slope goes from 5.428816 to 1.000000, nbyper is 4
> instead of 2 and bitpix is 32 instead of 16.
>
> Why is fslview unable to read the UINT16 images or is there some
> other issue with the image header?
>
> Thanks,
> Darren
>
|