lsst.pipe.tasks
g2c8cee2ce7+8fcb1119d8
Toggle main menu visibility
Loading...
Searching...
No Matches
python
lsst
pipe
tasks
prettyPictureMaker
types.py
Go to the documentation of this file.
1
from
__future__
import
annotations
2
3
__all__ = (
4
"FloatImagePlane"
,
5
"ColorImage"
,
6
"RGBImage"
,
7
"LABImage"
,
8
"LocalContrastFunction"
,
9
"ScaleLumFunction"
,
10
"ScaleColorFunction"
,
11
"RemapBoundsFunction"
,
12
"BracketingFunction"
,
13
"GamutRemappingFunction"
,
14
)
15
16
import
numpy
as
np
17
from
typing
import
TypeAlias, Callable, Literal
18
19
FloatImagePlane: TypeAlias = np.ndarray[tuple[int, int], np.dtype[np.floating]]
20
ColorImage: TypeAlias = np.ndarray[tuple[int, int, Literal[3]], np.dtype[np.floating]]
21
RGBImage: TypeAlias = ColorImage
22
LABImage: TypeAlias = ColorImage
23
LocalContrastFunction: TypeAlias = Callable[[FloatImagePlane], FloatImagePlane]
24
ScaleLumFunction: TypeAlias = Callable[[FloatImagePlane], FloatImagePlane]
25
ScaleColorFunction: TypeAlias = Callable[
26
[FloatImagePlane, FloatImagePlane, FloatImagePlane, FloatImagePlane],
27
tuple[FloatImagePlane, FloatImagePlane],
28
]
29
RemapBoundsFunction: type = Callable[[RGBImage], RGBImage]
30
BracketingFunction: type = Callable[[FloatImagePlane], FloatImagePlane]
31
GamutRemappingFunction: type = Callable[[LABImage, tuple[float, float]], RGBImage]
Generated on
for lsst.pipe.tasks by
1.17.0