Thanks for the code.But i find a small bug in the code in the line 215 of simpletracker.m file.
A = sparse(row_index, column_index, link_flag, n_total_cells, n_total_cells)
When i run and try to see A, i find some of the values has been computed as 2, which should not be the case as per definition of sparse:
and link_flag is a matrix of ones.
May be this could be one of the reason that the number of tracks which it computes at the end is not equal to what i expected.
I have a large array as my number of frames is 28400 and the number of points in some frames are 10 and in some it is 9.
If you could please explain or fix this bug, it will be helpful for me.
Thanks for the toolbox. I have following issue:
I have a 3D matrix in MATLAB which I need to convert to NIfTI or ANALYZE format so as to view it in SPM8. For this I am using "Tools for NIfTI and ANALYZE image". My problem is once I convert this 3D matrix to ANALYZE format using make_ana command, I get the brain volume that is rotated/flipped w.r.t the original volume.
How can I resolve this?
NOTE: co-registering this to original brain volume did not help, the result was still flipped.
Thank you so much for this very helpful code!
I encountered a problem with loading some of my files.
I prepared a mask file in FSL, and want to load it into matlab together with some functional files.
The problem is the affine matrix has non-orthogonal rotation for 2 of my subjects, so I cannot use "load_nii".
I am not sure if I can use "reslice_nii" because I still need this mask file to have the same dimensions as my functional file.
Any ideas would be much appreciated!