locan.visualize.transform.Trafo

class locan.visualize.transform.Trafo(value)[source]

Bases: Enum

Standard definitions for intensity transformation.

Attributes

NONE

no transformation

STANDARDIZE

rescale (min, max) to (0, 1)

STANDARDIZE_UINT8

rescale (min, max) to (0, 255)

ZERO

rescale (0, max) to (0, 1)

ZERO_UINT8

rescale (0, max) to (0, 255)

EQUALIZE

equalize histogram from all values > 0

EQUALIZE_UINT8

equalize histogram from all values > 0 onto (0, 255)

EQUALIZE_ALL

equalize histogram

EQUALIZE_ALL_UINT8

equalize histogram onto (0, 255)

EQUALIZE_0P3

equalize histogram with power = 0.3 from all values > 0

EQUALIZE_0P3_UINT8

equalize histogram with power = 0.3 from all values > 0 onto (0, 255)

EQUALIZE_0P3_ALL

equalize histogram with power = 0.3

EQUALIZE_0P3_ALL_UINT8

equalize histogram with power = 0.3 onto (0, 255)

EQUALIZE = 5

equalize histogram from all values > 0

EQUALIZE_0P3 = 9

equalize histogram with power = 0.3 from all values > 0

EQUALIZE_0P3_ALL = 11

equalize histogram with power = 0.3

EQUALIZE_0P3_ALL_UINT8 = 12

equalize histogram with power = 0.3 onto (0, 255)

EQUALIZE_0P3_UINT8 = 10

equalize histogram with power = 0.3 from all values > 0 onto (0, 255)

EQUALIZE_ALL = 7

equalize histogram

EQUALIZE_ALL_UINT8 = 8

equalize histogram onto (0, 255)

EQUALIZE_UINT8 = 6

equalize histogram from all values > 0 onto (0, 255)

NONE = 0

no transformation

STANDARDIZE = 1

rescale (min, max) to (0, 1)

STANDARDIZE_UINT8 = 2

rescale (min, max) to (0, 255)

ZERO = 3

rescale (0, max) to (0, 1)

ZERO_UINT8 = 4

rescale (0, max) to (0, 255)