When Polynomial extraction gives wrong results, a new algorithm has been developed in order to compute background. It uses 2-D surface splines interpolation, which is more adaptable. In consequence it is very important to play iteratively with parameters in order to check the background model. The video below shows this new algorithm in action. At the end of the process, a mid-tones transfer function is applied to the image.