phenotypic.sdk_.constants_.IMAGE_MODE#

class phenotypic.sdk_.constants_.IMAGE_MODE(*values)[source]#

Bases: Enum

Constants for supported image formats.

Methods

Attributes

NONE = None#
GRAYSCALE = 'GRAYSCALE'#
GRAYSCALE_SINGLE_CHANNEL = 'Grayscale (single channel)'#
HSV = 'HSV'#
RGB_OR_BGR = 'RGB/BGR (ambiguous)'#
RGBA_OR_BGRA = 'RGBA/BGRA (ambiguous)'#
RGB = 'RGB'#
LINEAR_RGB = 'LINEAR RGB'#
RGBA = 'RGBA'#
BGR = 'BGR'#
BGRA = 'BGRA'#
SUPPORTED_FORMATS = ('RGB', 'RGBA', 'GRAYSCALE', 'BGR', 'BGRA')#
MATRIX_FORMATS = ('GRAYSCALE', 'Grayscale (single channel)')#
AMBIGUOUS_FORMATS = ('RGB/BGR (ambiguous)', 'RGBA/BGRA (ambiguous)')#
is_matrix()[source]#
is_array()[source]#
is_ambiguous()[source]#
is_none()[source]#
CHANNELS_DEFAULT = 3#
DEFAULT_SCHEMA = 'RGB'#
classmethod __contains__(value)#

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

classmethod __getitem__(name)#

Return the member matching name.

classmethod __iter__()#

Return members in definition order.

classmethod __len__()#

Return the number of members (no aliases)