Color space conversion¶
Some of the docstrings for this module have been extracted from the scikit-image library and are covered by their respective licenses.
-
class
node_colors.
ColorSpaceConversion
[source]¶ Converts each pixel in a multi-channel image into another colour space
Algorithms: -
Converts greyscale values after normalization and scaling from 0 - 255 into a matplotlib colourmap.
- cmap:
The colormap to use in conversion
greyscale
Transforms RGB images into greyscale
- luminance preserving:
Use weighted average based on separate luminosity of red-green-blue receptors in human eye.
Only works for three channel images
-
Interprets input channels as Hue-Saturation-Value (HSV) and outputs Red-Green-Blue (RGB) channels.
-
Interprets input channels as Red-Green-Blue (RGB) and outputs Hue-Saturation-Value (HSV) channels.
-
Interprets input channels as sRGB and outputs CIE XYZ channels.
-
Interprets input channels as CIE XYZ and outputs sRGB channels.
Inputs: source : image
source image to filter
Outputs: result : image
result after filtering
-