curve2time function

Convert the tracked curve to a depth time space