Tckresample -step showing inhomogenous steps

Hello.

When using tckresample -step <float>, I get streamlines with (nearly) homogeneous step sizes, except for the step between the first and second points. This is noticeable in the figure below.

A single streamline with -step 0.5 mm (dark blue points), and its resampled version with -step 2.0 (cyan). Underlying voxels for reference, with dimensions of 1.7 mm per side. Notice that the first two points of the resampled tck are closer together than the desired 2 mm.

Command was:
tckresample -step 2.0 orig.tck resampled.tck

I tried to first upsample by a lot, followed by downsampling, but the first two points are always closer than desired, and even closer if starting from a tck with very small step sizes.

Any suggestions on how to get consistent step sizes? Thank you!

FYI: mrtrix_version: 3.0.4

1 Like