Fix blend bug

pull/21/head
Kohaku-Blueleaf 2023-01-26 01:41:55 +08:00
parent e07bb1eb09
commit bc2a71ba39
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ def run(img, blur, strength, mode='BS'):
img_blur = cv2.GaussianBlur(img, (0, 0), blur)
img_mul = np.clip(Blend.multiply(img_blur, img), 0, 1)
img_mul_blur = cv2.GaussianBlur(img_mul, (0, 0), blur)
img_glow = np.clip(Blend.lighten(img, img_mul_blur, strength), 0, 1)
img_glow = np.clip(Blend.lighten(img_mul_blur, img, strength), 0, 1)
else:
raise NotImplementedError