Inter and Intra-modal Deformable Registration: Continuous Deformations Meet Efficient Optimal Linear Programming