massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Pillow / PIL / ImageMorph.pyi
1 from _typeshed import StrOrBytesPath
2
3 from .Image import Image
4
5 LUT_SIZE: int
6 ROTATION_MATRIX: list[int]
7 MIRROR_MATRIX: list[int]
8
9 class LutBuilder:
10     patterns: list[str]
11     lut: bytearray
12     def __init__(self, patterns: list[str] | None = ..., op_name: str | None = ...) -> None: ...
13     def add_patterns(self, patterns: list[str]) -> None: ...
14     def build_default_lut(self) -> None: ...
15     def get_lut(self) -> bytearray: ...
16     def build_lut(self) -> bytearray: ...
17
18 class MorphOp:
19     lut: bytearray
20     def __init__(self, lut: bytearray | None = ..., op_name: str | None = ..., patterns: list[str] | None = ...) -> None: ...
21     def apply(self, image: Image) -> tuple[int, Image]: ...
22     def match(self, image: Image) -> list[tuple[int, int]]: ...
23     def get_on_pixels(self, image: Image) -> list[tuple[int, int]]: ...
24     def load_lut(self, filename: StrOrBytesPath) -> None: ...
25     def save_lut(self, filename: StrOrBytesPath) -> None: ...
26     def set_lut(self, lut: bytearray) -> None: ...