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 pgm 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, config_file: str = '', frame: int = 1, no_presentation_state_output: bool = False, no_bitmap_output: bool = False) Tuple[Dict, itkwasm.Image]#

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

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

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

  • 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:

Dict

Returns:

Output image

Return type:

Image