MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / Interpolation

Class Interpolation

scenedetect/common.py:148–160  ·  view source on GitHub ↗

Interpolation method used for image resizing. Based on constants defined in OpenCV.

Source from the content-addressed store, hash-verified

146
147
148class Interpolation(Enum):
149 """Interpolation method used for image resizing. Based on constants defined in OpenCV."""
150
151 NEAREST = cv2.INTER_NEAREST
152 """Nearest neighbor interpolation."""
153 LINEAR = cv2.INTER_LINEAR
154 """Bilinear interpolation."""
155 CUBIC = cv2.INTER_CUBIC
156 """Bicubic interpolation."""
157 AREA = cv2.INTER_AREA
158 """Pixel area relation resampling. Provides moire'-free downscaling."""
159 LANCZOS4 = cv2.INTER_LANCZOS4
160 """Lanczos interpolation over 8x8 neighborhood."""
161
162
163@dataclass(frozen=True)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected