ColorSpace

Color space for image data.

Defines how color values are interpreted in an image tensor.

Entries

Link copied to clipboard

Single-channel grayscale.

Link copied to clipboard

Red, Green, Blue (standard RGB order).

Link copied to clipboard

Blue, Green, Red (OpenCV default order).

Link copied to clipboard

Red, Green, Blue, Alpha (with transparency).

Link copied to clipboard

Blue, Green, Red, Alpha.

Link copied to clipboard

YUV color space (luminance + chrominance).

Link copied to clipboard

Hue, Saturation, Value.

Link copied to clipboard

CIE LAB color space.

Properties

Link copied to clipboard

Number of channels for this color space.

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard

Whether this color space has an alpha (transparency) channel.

Link copied to clipboard

Whether this is a grayscale (single-channel) color space.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.