|
lsst.pipe.tasks g2c8cee2ce7+721f9a9580
|
Public Member Functions | |
| tuple[FloatImagePlane, FloatImagePlane] | __call__ (self, FloatImagePlane old_lum, FloatImagePlane new_lum, FloatImagePlane a, FloatImagePlane b) |
Static Public Attributes | |
| saturation | |
| maxChroma | |
| brightFalloff | |
| equalizer_levels | |
Definition at line 35 of file _color_scale.py.
| tuple[FloatImagePlane, FloatImagePlane] lsst.pipe.tasks.prettyPictureMaker._functors._color_scale.ColorScaler.__call__ | ( | self, | |
| FloatImagePlane | old_lum, | ||
| FloatImagePlane | new_lum, | ||
| FloatImagePlane | a, | ||
| FloatImagePlane | b ) |
Adjusts the color saturation while keeping the hue constant.
This function adjusts the chromaticity (a, b) of colors to maintain a
consistent saturation level, based on their original luminance. It uses
the CIELAB color space representation and the `luminance` is the new target
luminance for all colors.
Parameters
----------
old_lum : `FloatImagePlane`
Luminance values of the original colors.
new_lum : `FloatImagePlane`
Target luminance values for the transformed colors.
a : `FloatImagePlane`
Chromaticity parameter 'a' corresponding to green-red axis in CIELAB.
b : `FloatImagePlane`
Chromaticity parameter 'b' corresponding to blue-yellow axis in CIELAB.
Returns
-------
new_a : `FloatImagePlane`
New a values representing the adjusted chromaticity.
new_b : `FloatImagePlane`
New b values representing the adjusted chromaticity.
Definition at line 64 of file _color_scale.py.
|
static |
Definition at line 50 of file _color_scale.py.
|
static |
Definition at line 53 of file _color_scale.py.
|
static |
Definition at line 43 of file _color_scale.py.
|
static |
Definition at line 36 of file _color_scale.py.