From 6a215fd505b0161d26c55d3c09af56b390a8e26d Mon Sep 17 00:00:00 2001 From: Jeremy Hummel Date: Mon, 12 Aug 2019 23:31:47 -0700 Subject: [PATCH] No clip --- samplelib/SampleProcessor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samplelib/SampleProcessor.py b/samplelib/SampleProcessor.py index a5dbb1b..84f5f14 100644 --- a/samplelib/SampleProcessor.py +++ b/samplelib/SampleProcessor.py @@ -235,7 +235,7 @@ class SampleProcessor(object): img_bgr = imagelib.linear_color_transfer(img_bgr, ct_sample_bgr) elif apply_ct == ColorTransferMode.RCT: - img_bgr = imagelib.reinhard_color_transfer(img_bgr, ct_sample_bgr, clip=True, preserve_paper=True) + img_bgr = imagelib.reinhard_color_transfer(img_bgr, ct_sample_bgr, clip=False, preserve_paper=True) elif apply_ct == ColorTransferMode.RCT_MASKED: if ct_sample_mask is None: @@ -243,7 +243,7 @@ class SampleProcessor(object): LandmarksProcessor.get_image_hull_mask(ct_sample_bgr.shape, ct_sample.landmarks) img_bgr = imagelib.reinhard_color_transfer(img_bgr, ct_sample_bgr, - clip=True, + clip=False, preserve_paper=True, target_mask=img_mask, source_mask=ct_sample_mask)