Nonrigid color image registration by minimizing residual complexity under illumination variations