mitk.PixelType

mitk.PixelType#

class mitk.PixelType#

Bases: pybind11_object

Describes the per-pixel layout of an Image.

A PixelType combines a component scalar type (uint8, int8, uint16, int16, uint32, int32, float32, float64) with a component count (1 for scalar pixels, 3 for RGB, 4 for RGBA, etc.).

PixelType instances are usually constructed indirectly via make_pixel_type() or by passing a NumPy dtype to Image.initialize().

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)