From 956b02e79649279baebdb84f1f8169f82cba380c Mon Sep 17 00:00:00 2001 From: aviv mezer Date: Wed, 15 Apr 2015 16:59:19 +0300 Subject: [PATCH] allowing to read the new nifti convention that include the tr in the last pixdim field --- fileFilters/nifti/niftiNi2Vista.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileFilters/nifti/niftiNi2Vista.m b/fileFilters/nifti/niftiNi2Vista.m index 7c0d4eab..769efc59 100644 --- a/fileFilters/nifti/niftiNi2Vista.m +++ b/fileFilters/nifti/niftiNi2Vista.m @@ -24,7 +24,7 @@ niiv.dim = size(niiv.data); % Dime field -niiv.pixdim = nii.hdr.dime.pixdim(2:niiv.ndim+1); +niiv.pixdim = nii.hdr.dime.pixdim(2:niiv.ndim+2); % The image pixdim and the TR in the end. niiv.scl_slope = nii.hdr.dime.scl_slope; niiv.scl_inter = nii.hdr.dime.scl_inter; niiv.cal_min = nii.hdr.dime.cal_min;