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.ImageData1D class

One-dimensional image data

See ImageData2D for more information.

Properties

compressed_format: CompressedPixelFormat get
Format of compressed pixel data
data: corrade.containers.ArrayView get
Raw image data
data_flags: DataFlags get
Data flags
format: PixelFormat get
Format of pixel data
is_compressed: bool get
Whether the image is compressed
mutable_data: corrade.containers.MutableArrayView get
Mutable raw image data
mutable_pixels: corrade.containers.MutableStridedArrayView1D get
Mutable pixel data
owner: object get
Memory owner
pixel_size: int get
Pixel size (in bytes)
pixels: corrade.containers.StridedArrayView1D get
Pixel data
size: int get
Image size
storage: PixelStorage get
Storage of pixel data

Property documentation

magnum.trade.ImageData1D.compressed_format: CompressedPixelFormat get

Format of compressed pixel data

Exceptions
AttributeError If is_compressed is False

magnum.trade.ImageData1D.format: PixelFormat get

Format of pixel data

Exceptions
AttributeError If is_compressed is True

magnum.trade.ImageData1D.mutable_data: corrade.containers.MutableArrayView get

Mutable raw image data

Exceptions
AttributeError If data_flags doesn’t contain DataFlags.MUTABLE

magnum.trade.ImageData1D.mutable_pixels: corrade.containers.MutableStridedArrayView1D get

Mutable pixel data

Exceptions
AttributeError If is_compressed is True
AttributeError If data_flags doesn’t contain DataFlags.MUTABLE

magnum.trade.ImageData1D.pixel_size: int get

Pixel size (in bytes)

Exceptions
AttributeError If is_compressed is True

magnum.trade.ImageData1D.pixels: corrade.containers.StridedArrayView1D get

Pixel data

Exceptions
AttributeError If is_compressed is True

magnum.trade.ImageData1D.storage: PixelStorage get

Storage of pixel data

Exceptions
AttributeError If is_compressed is True