itkwasm_image_io.read_image_async¶

Module Contents¶

Functions¶

read_image_async

Read an image file format and convert it to the itk-wasm file format

imread_async

API¶

async itkwasm_image_io.read_image_async.read_image_async(serialized_image: os.PathLike, information_only: bool = False, pixel_type: Optional[itkwasm.PixelTypes] = None, component_type: Optional[Union[itkwasm.IntTypes, itkwasm.FloatTypes]] = None) itkwasm.Image¶

Read an image file format and convert it to the itk-wasm file format

Parameters:
  • serialized_image (os.PathLike) – Input image serialized in the file format

  • information_only (bool) – Only read image metadata – do not read pixel data.

  • pixel_type – Pixel type to cast to.

  • component_type (Optional[Union[IntTypes, FloatTypes]]) – Component type to cast to.

Returns:

Output image

Return type:

Image

async itkwasm_image_io.read_image_async.imread_async(serialized_image: os.PathLike, information_only: bool = False, pixel_type: Optional[itkwasm.PixelTypes] = None, component_type: Optional[Union[itkwasm.IntTypes, itkwasm.FloatTypes]] = None) itkwasm.Image¶