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

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.StridedArrayView2D get
View on pixel data
size: int get
Image size
storage: PixelStorage get
Storage of pixel data

Property documentation

magnum.trade.ImageData1D.format: PixelFormat get

Format of pixel data

Exceptions
AttributeError If is_compressed is True

magnum.trade.ImageData1D.pixel_size: int get

Pixel size (in bytes)

Exceptions
AttributeError If is_compressed is True

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

View on 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