Pattern recognition after image processing of low-contrast images, the case of the Shroud of Turin