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

Three-dimensional mutable image view

Contents

See ImageView2D for more information.

Special methods

def __init__(self, arg0: PixelStorage, arg1: PixelFormat, arg2: Vector3i, /) -> None
Construct an empty view
def __init__(self, arg0: PixelFormat, arg1: Vector3i, /) -> None
Construct an empty view
def __init__(self, arg0: PixelStorage, arg1: PixelFormat, arg2: Vector3i, arg3: corrade.containers.MutableArrayView, /) -> None
Constructor
def __init__(self, arg0: PixelFormat, arg1: Vector3i, arg2: corrade.containers.MutableArrayView, /) -> None
Constructor
def __init__(self, arg0: Image3D, /) -> None
Construct a view on an image
def __init__(self, arg0: MutableImageView3D, /) -> None
Construct from any type convertible to an image view

Properties

data: corrade.containers.MutableArrayView get set
Image data
format: PixelFormat get
Format of pixel data
owner: object get
Memory owner
pixel_size: int get
Pixel size (in bytes)
pixels: corrade.containers.MutableStridedArrayView4D get
View on pixel data
size: Vector3i get
Image size
storage: PixelStorage get
Storage of pixel data

Method documentation

def magnum.MutableImageView3D.__init__(self, arg0: MutableImageView3D, /) -> None

Construct from any type convertible to an image view

Exceptions
RuntimeError If trade.ImageData3D.is_compressed is True

This function is used to implement implicit conversion from trade.ImageData3D in the trade module.