itkwasm_image_io.write_image_async

Module Contents

Functions

write_image_async

Write an itk-wasm file format converted to an image file format

imwrite_async

API

async itkwasm_image_io.write_image_async.write_image_async(image: itkwasm.Image, serialized_image: str, information_only: bool = False, use_compression: bool = False) None

Write an itk-wasm file format converted to an image file format

Parameters:
  • image (Image) – Input image

  • serialized_image (str) – Output image serialized in the file format.

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

  • use_compression (bool) – Use compression in the written file

async itkwasm_image_io.write_image_async.imwrite_async(image: itkwasm.Image, serialized_image: os.PathLike, information_only: bool = False, use_compression: bool = False) None