Hi Kendrick,
I finally resolved my problem ! Here is the solution, if it helps:
For information I used the built-in "niftiread" and "
niftiwrite" matlab function to load and save my 4D nifti files.
My first problem, was that using
the "tseriesinterp" function after "niftiread"
, the wrong dimension was used for time.
Indeed, the default is dimension 1, while I had to chose the dimension 4.
My second problem was when writing the data with
niftiwrite. I had to define the correct transformation matrix.
So I loaded the header of the nifti file using "niftiinfo" prior to the interpolation, withing the header I changed the size of the temporal dimension to match the new size.
Then I save the new interpolated 4D nifti using niftiwrite and passing the header information.
It now works correctly I think. Indeed, while running the same univariate analyses, I see a lot more false positive after the interpolation. But I guess it is due to the interpolation in itself.
I still the same cluster I'm interested in before and after the interpolation, it's why I think it works.
I have a last question regarding movement regressor.
I usually get them automatically during my preprocessing. For now, I did an interpolation on it two.
But I am wondering if I should rather do the interpolation before the preprocessing, so the movement regressor would be them extracted automatically.
Altough I am not sure there would still be correct after that...
Any thought about it ?