From 2f5c97c0c21a86bb7334dee61453623e6a3d41c3 Mon Sep 17 00:00:00 2001 From: Ondrej Jamriska Date: Fri, 10 May 2019 02:00:16 +0200 Subject: [PATCH] vary the modulation across the whole patch --- src/ebsynth_cuda.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ebsynth_cuda.cu b/src/ebsynth_cuda.cu index 962f136..2e8665b 100644 --- a/src/ebsynth_cuda.cu +++ b/src/ebsynth_cuda.cu @@ -722,7 +722,7 @@ struct PatchSSD_Split_Modulation { const Vec pixTg = targetGuide(tx + px,ty + py); const Vec pixSg = sourceGuide(sx + px,sy + py); - const Vec mult = Vec(targetModulation(tx,ty))/255.0f; + const Vec mult = Vec(targetModulation(tx + px,ty + py))/255.0f; for(int i=0;i