I have written two 2D images from MATLAB using the NIFTI toolbox. However when I try to run FLIRT with the -2D option it reports that it cannot read the header file of my .nii file. I have also tried creating the image using MIPAV.
flirt -in input -ref ref -out temp -omat temp.mat -2D
** ERROR (nifti_image_read): failed to find header file for 'ref'
** ERROR: nifti_image_open(ref): bad header info
Error: failed to open file ref
ERROR: Could not open image ref
Image Exception : #22 :: Failed to read volume ref
terminate called after throwing an instance of 'RBD_COMMON::BaseException'
Abort trap
Any suggestions?
Blake Dewey
Vanderbilt University Institute of Imaging Science
|