Image Dimention Errors

Submitted by Chris Stevens on
I have used SPM to preprocesses my data before using the REST utility to convert the data from .nii to niftiPairs. But I am now running into problems and I receive errors and warnings in many of REST's tools about the dimensions of my images. Here are all the problems I've encountered: In the Image Slice Viewer utility, when I am selecting a structural image as an underlay I receive a warning that reads: "The voxel size of the underlay is not 1x1x1. If you want to add functional overlay to this structural underlay, the location may be not correct, please be careful!" Also when performing a Paired T-Test and assigning a mask I receive this error in matlab and no files are produced from the T-Test: Paired T Test Calculating... ??? Array dimensions must match for binary array op. Error in ==> rest_ttestpaired_Image at 50 TTestPaired_T=TTestPaired_T.*MaskData; Error in ==> rest_ttestpaired_gui>btnCompute_Callback at 113 rest_ttestpaired_Image(DependentDirs,OutputName,MaskFile); Error in ==> gui_mainfcn at 96 feval(varargin{:}); Error in ==> rest_ttestpaired_gui at 27 gui_mainfcn(gui_State, varargin{:}); ??? Error while evaluating uicontrol Callback

YAN Chao-Gan

Sat, 12/03/2011 - 03:01

In the next version of REST and DPARSF, they will support .nii and .nii.gz format, thus you will no longer need to use REST utility to convert the data from .nii to niftiPairs. Estimated release date: 2012.01.01. 1. Currently, REST Slice Viewer can not doing well with structural images with rotation matrix and anisotropic voxel size. You can try MRIcroN in such a case. 2. You need to make sure your mask file and functional data have the same dimension and voxel size before using REST.
Forums