Exploiting low-dimensional structure and optimal transport for tracking and alignment