The problem usually isn't the images themselves---as John said, most recent versions of SPM can deal appropriately with endianness in the images. The problem is rather in SPM.mat files; some numbers related to endianness are hardcoded there, and those need to be modified.
I attached one function I wrote in matlab based on stuff other people posted here; it has a link to a post here in the comment section if you want to look at others' code.
|