This commit is contained in:
iperov 2019-05-07 10:47:51 +04:00
parent d8c1e2e58b
commit d003366033

View file

@ -223,12 +223,6 @@ class SampleProcessor(object):
img_bgr = imagelib.linear_color_transfer (img_bgr, ct_sample_bgr_resized)
img_bgr = np.clip( img_bgr, 0.0, 1.0)
# img_bgr = imagelib.reinhard_color_transfer ( np.clip( (img_bgr*255) .astype(np.uint8), 0, 255),
# np.clip( (ct_sample_bgr_resized*255).astype(np.uint8), 0, 255) )
# #source_mask=ct_sample_mask_resized, target_mask=img_mask)
# img_bgr = np.clip( img_bgr.astype(np.float32) / 255.0, 0.0, 1.0)
if normalize_std_dev:
img_bgr = (img_bgr - img_bgr.mean( (0,1)) ) / img_bgr.std( (0,1) )