Interpolation method used for image resizing. Based on constants defined in OpenCV.
| 146 | |
| 147 | |
| 148 | class 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) |
nothing calls this directly
no outgoing calls
no test coverage detected