Advanced denoising for X-ray ptychography