OPTIMAL DETECTION OF CURVES IN NOISY PICTURES