Implementation of Pei&Lin Image Normalization