class RGBPixel

Last modified: February 14, 2023

Contents

RGBPixel

In module gamera.core

__init__(red, green, blue).

Example: RGBPixel(255, 0, 0).

Each color value is in the range 0-255 (8 bits).

For more information about color operations, see the Color plugin docs.

red

(int property)

The current red value [0,255]

green

(int property)

The current green value [0, 255]

blue

(int property)

The current blue value [0, 255]

hue

(float property)

The hue [0, 1.0]

saturation

(float property)

The saturation [0, 1.0]

value

(float property)

The value [0, 1.0]

cie_x

(float property)

The x value in CIE XYZ color space [0, 1.0]

cie_y

(float property)

The y value in CIE XYZ color space [0, 1.0]

cie_z

(float property)

The z value in CIE XYZ color space [0, 1.0]

cie_Lab_L

(float property)

The L value in CIE L*a*b* color space [0, 100]

cie_Lab_a

(float property)

The a value in CIE L*a*b* color space [-86.2, 98.3]

cie_Lab_b

(float property)

The b value in CIE L*a*b* color space [-107.9, 94.5]

cyan

(int property)

The cyan value [0, 255]

magenta

(int property)

The magenta value [0, 255]

yellow

(int property)

The yellow value [0, 255]