Suppression of inhomogeneities in images of textured surfaces