Implementation of transformation proposed by Soo-Chang Pei and Chao-Nan Lin in paper entitled "Image normalization for pattern recognition".