Learning to sample in Cartesian MRI