Optimal Smoothing in Picture Processing: An Application to Fingerprints