itkwasm_image_io.read_image

Module Contents

Functions

read_image

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

imread

API

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

itkwasm_image_io.read_image.imread(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