Statistics for Using Anisotropic Gaussian Window for Printed and Handwritten Text Parameters Extraction