Registration of sliding objects using direction dependent B-splines decomposition