Noise and distortion suppression for industrial confocal microscopy