Color space conversion

../../../../_images/image_colorspace.svg

Converts each pixel in a multi-channel image into another colour space

Algorithms:

  • grey2cmap

    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

  • hsv2rgb

    Interprets input channels as Hue-Saturation-Value (HSV) and outputs Red-Green-Blue (RGB) channels.

  • lab2rgb

    Interprets input channels as sRGB and outputs CIE LAB channels.

    illuminant:

    CIE standard illumination spectrum

    observer:

    Aperture angle of observer

  • rgb2hsv

    Interprets input channels as Red-Green-Blue (RGB) and outputs Hue-Saturation-Value (HSV) channels.

  • rgb2lab

    Interprets input channels as sRGB and outputs CIE LAB channels.

    illuminant:

    CIE standard illumination spectrum

    observer:

    Aperture angle of observer

  • rgb2xyz

    Interprets input channels as sRGB and outputs CIE XYZ channels.

  • xyz2rgb

    Interprets input channels as CIE XYZ and outputs sRGB channels.

Input ports:

source : image

source image to filter
Output ports:

result : image

result after filtering
Configuration:
Algorithm (algorithm)
(no description)
cmap (cmap)
(no description)
illuminant (illuminant)
(no description)
observer (observer)
(no description)
luminance preserving (luminance preserving)
(no description)

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]