patchwork/denoising/nlm_denoising: fix logging error.
patchwork/denoising/nlm_core: add function to get a patch.