Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

magnum.trade.ImageData3D class

Three-dimensional image data

Contents

See ImageData2D for more information.

Properties

data: corrade.containers.ArrayView get
Image data
format: PixelFormat get
Format of pixel data
is_compressed: bool get
Whether the image is compressed
pixel_size: int get
Pixel size (in bytes)
pixels: corrade.containers.StridedArrayView4D get
View on pixel data
size: Vector3i get
Image size
storage: PixelStorage get
Storage of pixel data

Property documentation

magnum.trade.ImageData3D.format: PixelFormat get

Format of pixel data

Exceptions
AttributeError If is_compressed is True

magnum.trade.ImageData3D.pixel_size: int get

Pixel size (in bytes)

Exceptions
AttributeError If is_compressed is True

magnum.trade.ImageData3D.pixels: corrade.containers.StridedArrayView4D get

View on pixel data

Exceptions
AttributeError If is_compressed is True

magnum.trade.ImageData3D.storage: PixelStorage get

Storage of pixel data

Exceptions
AttributeError If is_compressed is True