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)