Dear Cyril,
Data type 128 corresponds to NIFTI_TYPE_RGB24. How did you convert the
image to NIfTI? Do you have any reason to expect multiple values per
voxel for these data?
Best regards,
Guillaume.
On 21/11/2019 14:46, PERNET Cyril wrote:
> Dear Guillaume, John, …
>
>
>
> Hope you can advice a work around this one ..
>
>
>
> spm_coreg(V(T1w),V(some Siemens reconstructed image), flags) returns an
> error due to data type (dt [128 0])
>
>
>
> Error using spm_slice_vol
>
> Unknown datatype.
>
>
>
> Error in spm_coreg>loaduint8 (line 238)
>
> img = spm_slice_vol(V,spm_matrix([0 0 p]),V.dim(1:2),1);
>
>
>
> Error in spm_coreg (line 141)
>
> VFk.uint8 = loaduint8(VFk);
>
>
>
> spm_vol returns
>
>
>
> V =
>
>
>
> struct with fields:
>
>
>
> fname: 'xxxx_DTI_ColFA_echo1.nii'
>
> dim: [128 128 74]
>
> dt: [128 0]
>
> pinfo: [3×1 double] ß[1 0 NaN]
>
> mat: [4×4 double]
>
> n: [1 1]
>
> descrip: 'TE=0;Time=112056.083;phase=1'
>
> private: [1×1 nifti]
>
>
>
> Thx
>
> Cyril
>
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
UCL Queen Square Institute of Neurology
London WC1N 3BG
|