scistag.imagestag.interpolation.InterpolationMethod¶
- class InterpolationMethod(value)[source]¶
Bases:
EnumEnumeration of image interpolation methods
Methods
Maps the enum to the corresponding OpenCV type
Maps the enum to the corresponding PIL type
Attributes
The pixel will be kept intact, the upscaled image has quite hard pixel edges and the downscaled image is noisy
Linear interpolation.
Cubic interpolation.
The highest image rescaling quality available in cv2/PIL.
__doc____members____module__- CUBIC = 2¶
Cubic interpolation. Matches the pixels of the source region to the image region and tries to preserve contours
- LANCZOS = 3¶
The highest image rescaling quality available in cv2/PIL. Use this if performance is not the most important
- LINEAR = 1¶
Linear interpolation. Mixes up to four colors based upon subpixel position.
- NEAREST = 0¶
The pixel will be kept intact, the upscaled image has quite hard pixel edges and the downscaled image is noisy