update xlib/image/ImageProcessor.py

This commit is contained in:
iperov 2021-10-06 14:51:23 +04:00
parent 65fb01ff39
commit 09400dce75

View file

@ -492,6 +492,9 @@ class ImageProcessor:
class Interpolation(IntEnum):
LINEAR = 0
CUBIC = 1
LANCZOS4 = 4
_cv_inter = { ImageProcessor.Interpolation.LINEAR : cv2.INTER_LINEAR,
ImageProcessor.Interpolation.CUBIC : cv2.INTER_CUBIC }
ImageProcessor.Interpolation.CUBIC : cv2.INTER_CUBIC,
ImageProcessor.Interpolation.LANCZOS4 : cv2.INTER_LANCZOS4,
}