4D inversion of L1 and L2 norm minimizations