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