Waveform LiDAR signal denoising based on connected domains