From 55c51578e5da4f1da274c4b18a47b5970a67cf2b Mon Sep 17 00:00:00 2001 From: Colombo Date: Fri, 3 Jul 2020 18:38:53 +0400 Subject: [PATCH] fix bicubic interpolation in xsegeditor --- XSegEditor/XSegEditor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/XSegEditor/XSegEditor.py b/XSegEditor/XSegEditor.py index 94a177c..c9cb6aa 100644 --- a/XSegEditor/XSegEditor.py +++ b/XSegEditor/XSegEditor.py @@ -357,7 +357,7 @@ class QCanvasOperator(QWidget): self.xseg_overlay_mask_pixmap = None if xseg_mask is not None: h,w,c = img.shape - xseg_mask = cv2.resize(xseg_mask, (w,h), cv2.INTER_CUBIC) + xseg_mask = cv2.resize(xseg_mask, (w,h), interpolation=cv2.INTER_CUBIC) xseg_mask = imagelib.normalize_channels(xseg_mask, 1) xseg_img = img.astype(np.float32)/255.0 xseg_overlay_mask = xseg_img*(1-xseg_mask)*0.5 + xseg_img*xseg_mask