Fix the error of reading and writing NIfTI images in REST on multiple OS (especially 64 bit linux)

Submitted by YAN Chao-Gan on
Since the module of reading and writing NIfTI images in REST is based on some spm compiled files, you may encounter the problem of “Error using ==> rest_WriteNiftiImage at 92” if you use the most recent OS.

Please do the following steps to fix this problem:
1. Please install SPM5 (or above release) and compile the mex files correctly according to http://en.wikibooks.org/wiki/SPM/Installation_on_64bit_Linux.
2. Please install the latest release of REST.
3. Run the function: REST_Fix_Read_Write_Error. Please click here to download it!


DOWNLOAD REST_Fix_Read_Write_Error.m
Forums