Background estimation with ABCD method