From 53c4f8a86ed9dd6d0cf8a0a7447ecb4eb13135f5 Mon Sep 17 00:00:00 2001 From: iperov Date: Sat, 11 May 2019 16:55:06 +0400 Subject: [PATCH] cleaning --- samplelib/SampleProcessor.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/samplelib/SampleProcessor.py b/samplelib/SampleProcessor.py index acfd7e9..f7f9aee 100644 --- a/samplelib/SampleProcessor.py +++ b/samplelib/SampleProcessor.py @@ -215,10 +215,8 @@ class SampleProcessor(object): if apply_ct: if ct_sample_bgr is None: ct_sample_bgr = ct_sample.load_bgr() - ct_sample_mask = LandmarksProcessor.get_image_hull_mask (ct_sample_bgr.shape, ct_sample.landmarks) ct_sample_bgr_resized = cv2.resize( ct_sample_bgr, (resolution,resolution), cv2.INTER_LINEAR ) - ct_sample_mask_resized = cv2.resize( ct_sample_mask, (resolution,resolution), cv2.INTER_LINEAR )[...,np.newaxis] img_bgr = imagelib.linear_color_transfer (img_bgr, ct_sample_bgr_resized) img_bgr = np.clip( img_bgr, 0.0, 1.0)