itkwasm_image_io.write_image¶

Module Contents¶

Functions¶

write_image

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

imwrite

API¶

itkwasm_image_io.write_image.write_image(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

itkwasm_image_io.write_image.imwrite(image: itkwasm.Image, serialized_image: os.PathLike, information_only: bool = False, use_compression: bool = False) None¶