Fix bug in ConverterMasked when overexposed pixels appear sometimes

This commit is contained in:
iperov 2019-01-09 13:57:26 +04:00
parent faa8cebc98
commit 1e28ae24b1

View file

@ -256,6 +256,8 @@ class ConverterMasked(ConverterBase):
if self.alpha:
out_img = np.concatenate ( [out_img, np.expand_dims (img_mask_blurry_aaa[:,:,0],-1)], -1 )
out_img = np.clip (out_img, 0.0, 1.0 )
if debug:
debugs += [out_img.copy()]