Imported from https://github.com/daintlab/ct-denoising