Color space conversion

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

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:
  • 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.

  • rgb2hsv

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

  • rgb2xyz

    Interprets input channels as sRGB and outputs CIE XYZ channels.

  • xyz2rgb

    Interprets input channels as CIE XYZ and outputs sRGB channels.

Inputs:

source : image

source image to filter

Outputs:

result : image

result after filtering