Cannot load .fdf files with non-square data matrix
MRI Multiple Echo T2 Analysis
Status: Beta
Brought to you by:
coolth
Varian/Agilent .fdf files with non-square data matrices (e.g. 64x128) generate the following error in AnalyzeNNLS:
Subscripted assignment dimension mismatch.
Error in qT2_LoadVarian (line 116)
h.MultiEcho.data(:,:,1) = DataTmp;
This is because the data matrix is transposed in qT2_Varian_fdf.m, I assume to correct for the default Axial orientation on the Varian system which has read-out in the Y-direction. This causes the dimensions of DataTmp to be swapped with respect to the MultiEcho.data array for non-square data matrices.
A simple fix is to remove line 58 in qT2_Varian_fdf.m and simply use the un-transposed data. The default "Axial" images will appear to be rotated, but the program remains useable.