BUG : it now works for the set of data with small field of view. Changed spline order and number of points. Also set the last landmark to the edge of the curve