cleaning
This commit is contained in:
@@ -224,12 +224,6 @@ class SampleProcessor(object):
|
|||||||
img_bgr = imagelib.linear_color_transfer (img_bgr, ct_sample_bgr_resized)
|
img_bgr = imagelib.linear_color_transfer (img_bgr, ct_sample_bgr_resized)
|
||||||
img_bgr = np.clip( img_bgr, 0.0, 1.0)
|
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:
|
if normalize_std_dev:
|
||||||
img_bgr = (img_bgr - img_bgr.mean( (0,1)) ) / img_bgr.std( (0,1) )
|
img_bgr = (img_bgr - img_bgr.mean( (0,1)) ) / img_bgr.std( (0,1) )
|
||||||
elif normalize_vgg:
|
elif normalize_vgg:
|
||||||
|
|||||||
Reference in New Issue
Block a user