patchwork/denoising: fix bug on search region creation.