itkwasm_dicom.apply_presentation_state_to_image_asyncΒΆ

Module ContentsΒΆ

FunctionsΒΆ

apply_presentation_state_to_image_async

Apply a presentation state to a given DICOM image and render output as bitmap, or dicom file.

APIΒΆ

async itkwasm_dicom.apply_presentation_state_to_image_async.apply_presentation_state_to_image_async(image_in: os.PathLike, presentation_state_file: os.PathLike, color_output: bool = False, config_file: str = '', frame: int = 1, no_presentation_state_output: bool = False, no_bitmap_output: bool = False) Tuple[Any, itkwasm.Image]ΒΆ

Apply a presentation state to a given DICOM image and render output as bitmap, or dicom file.

Parameters:
  • image_in (os.PathLike) – Input DICOM file

  • presentation_state_file (os.PathLike) – Process using presentation state file

  • color_output (bool) – output image as RGB (default: false)

  • config_file (str) – filename: string. Process using settings from configuration file

  • frame (int) – frame: integer. Process using image frame f (default: 1)

  • no_presentation_state_output (bool) – Do not get presentation state information in text stream.

  • no_bitmap_output (bool) – Do not get resulting image as bitmap output stream.

Returns:

Output overlay information

Return type:

Any

Returns:

Output image

Return type:

Image