Fix bug in ConverterMasked when overexposed pixels appear sometimes
This commit is contained in:
@@ -256,6 +256,8 @@ class ConverterMasked(ConverterBase):
|
|||||||
if self.alpha:
|
if self.alpha:
|
||||||
out_img = np.concatenate ( [out_img, np.expand_dims (img_mask_blurry_aaa[:,:,0],-1)], -1 )
|
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:
|
if debug:
|
||||||
debugs += [out_img.copy()]
|
debugs += [out_img.copy()]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user