itkwasm.image

Module Contents

Classes

Functions

_default_direction

_buffered_region_size

The buffered region size implied by the shape of a pixel data buffer.

API

class itkwasm.image.ImageType
dimension: int

2

componentType: Union[itkwasm.int_types.IntTypes, itkwasm.float_types.FloatTypes]

None

pixelType: itkwasm.pixel_types.PixelTypes

None

components: int

1

itkwasm.image._default_direction() numpy.typing.ArrayLike
class itkwasm.image.ImageRegion
index: Sequence[int]

‘field(…)’

size: Sequence[int]

‘field(…)’

itkwasm.image._buffered_region_size(data, dimension: int) Optional[Sequence[int]]

The buffered region size implied by the shape of a pixel data buffer.

None when the buffer does not describe the region, so the current region is kept. This is the case for a raveled buffer, and for the data: URI that transiently occupies the field while pipeline output JSON is deserialized, before the buffer it addresses is read into an array.

class itkwasm.image.Image
imageType: Union[itkwasm.image.ImageType, Dict]

‘field(…)’

name: str

‘Image’

origin: Sequence[float]

‘field(…)’

spacing: Sequence[float]

‘field(…)’

direction: numpy.typing.ArrayLike

‘field(…)’

size: Sequence[int]

‘field(…)’

metadata: Dict

‘field(…)’

data: Optional[numpy.typing.ArrayLike]

None

bufferedRegion: Optional[itkwasm.image.ImageRegion]

None

__post_init__()
__setattr__(name, value)