Defocus-invariant image registration for phase-difference detection auto focusing