types ¶
Classes:
-
Coordinates– -
XxpandMode–Expand/inpand mode
Attributes:
-
MaskLike–Type alias for anything that can resolve to a mask.
MaskLike module-attribute ¶
MaskLike = Union[
VideoNode,
Callable[[VideoNode, VideoNode], VideoNode],
EdgeDetectLike,
RidgeDetectLike,
GeneralMask,
str,
]
Type alias for anything that can resolve to a mask.
Coordinates ¶
Bases: tuple[int, ...], CustomEnum
Methods:
-
from_iter– -
from_param–Return the enum value from a parameter.
-
from_xxpand_mode–
Attributes:
-
CORNERS– -
DIAMOND– -
HORIZONTAL– -
RECTANGLE– -
VERTICAL–
from_iter classmethod ¶
from_iter(iter: int) -> Coordinates
Source code in vsmasktools/types.py
43 44 45 | |
from_param classmethod ¶
from_param(value: Any, func_except: FuncExcept | None = None) -> Self
Return the enum value from a parameter.
Parameters:
-
(value¶Any) –Value to instantiate the enum class.
-
(func_except¶FuncExcept | None, default:None) –Exception function.
Returns:
-
Self–Enum value.
Raises:
-
NotFoundEnumValue–Variable not found in the given enum.
Source code in jetpytools/enums/base.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |
from_xxpand_mode classmethod ¶
from_xxpand_mode(xxpand_mode: XxpandMode, iter: int = 1) -> Coordinates
Source code in vsmasktools/types.py
47 48 49 50 51 52 | |
XxpandMode ¶
Bases: CustomEnum
Expand/inpand mode
Methods:
-
from_param–Return the enum value from a parameter.
Attributes:
from_param classmethod ¶
from_param(value: Any, func_except: FuncExcept | None = None) -> Self
Return the enum value from a parameter.
Parameters:
-
(value¶Any) –Value to instantiate the enum class.
-
(func_except¶FuncExcept | None, default:None) –Exception function.
Returns:
-
Self–Enum value.
Raises:
-
NotFoundEnumValue–Variable not found in the given enum.
Source code in jetpytools/enums/base.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |