We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 755b083 commit d1e14c5Copy full SHA for d1e14c5
tiatoolbox/utils/postproc_defs.py
@@ -22,11 +22,11 @@ def __init__(
22
provided, a set of distinct colors will be auto-generated.
23
24
"""
25
- self.colors = None
+ self.colors: np.ndarray | None = None
26
self.color_dict = color_dict
27
- self.is_validated = False
28
- self.channels = None
29
- self.enhance = 1.0
+ self.is_validated: bool = False
+ self.channels: list[int] | None = None
+ self.enhance: float = 1.0
30
31
def validate(self: MultichannelToRGB, n: int) -> None:
32
"""Validate the input color_dict on first read from image.
0 commit comments