Reply To: Map track start/end to label

#227
maedoc
Participant

I was aware of the transformation flags which is how I ruled out that the tracks were in the DWI space.

My question was, how can I recover voxel coordinates of tracks? If the coordinates of the curves in the dft file are in T1 space, normally one inverts the 4×4 T1 affine and applies it to the curve coordinates, but this produced a translation that was not correct. Rather, I had to invert take the inverse of affine(1:3, 1:3) and apply it to curve coordinates.

I verified this by plotting a slice of the T1 space label image with imagesc (transposed & with upside down) and plotting the seeds of all the curves within that slice. The seed points line up nicely with the image, whereas this fails completely with the full 4×4 affine.

I repeat, it would be nice to have confirmation on this as I did not read enough of the source code to confirm 100%.