Fix PatchBasedDenoising warning for double to in conversion

Change-Id: I62ef9d09036239db4c650520dca96b585bdf6e5b