annotate stubs/PIL/ImageMorph.pyi @ 2328:d050b8efda9d

fix bug with uninitialized effect ,and prefer a dead effect over a graph reload
author drewp@bigasterisk.com
date Thu, 01 Jun 2023 18:42:36 -0700
parents 3b2255e3576d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1947
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
1 # Stubs for PIL.ImageMorph (Python 3)
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
2 #
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
3 # NOTE: This dynamically typed stub was automatically generated by stubgen.
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
4
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
5 from typing import Any, Optional
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
6
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
7 LUT_SIZE: Any
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
8
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
9 class LutBuilder:
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
10 patterns: Any = ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
11 lut: Any = ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
12 def __init__(self, patterns: Optional[Any] = ..., op_name: Optional[Any] = ...) -> None: ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
13 def add_patterns(self, patterns: Any) -> None: ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
14 def build_default_lut(self) -> None: ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
15 def get_lut(self): ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
16 def build_lut(self): ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
17
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
18 class MorphOp:
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
19 lut: Any = ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
20 def __init__(self, lut: Optional[Any] = ..., op_name: Optional[Any] = ..., patterns: Optional[Any] = ...) -> None: ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
21 def apply(self, image: Any): ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
22 def match(self, image: Any): ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
23 def get_on_pixels(self, image: Any): ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
24 def load_lut(self, filename: Any) -> None: ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
25 def save_lut(self, filename: Any) -> None: ...
3b2255e3576d big stubgen run for PIL, moviepy, rx
Drew Perttula <drewp@bigasterisk.com>
parents:
diff changeset
26 def set_lut(self, lut: Any) -> None: ...