Statistical Inference Using Mean Shift Denoising